Files
argon-theme/tmp/settings_225a925.php
nanhaoluo 17c5f8365d feat: 优化 AI 摘要提示词并恢复完整的评论审查设置
- 优化 AI 摘要提示词,更专业、更详细的指导
- 恢复完整的评论审查检测模式:关闭/关键字必查/智能抽查/全量检测
- 新增触发关键字和黑名单关键字的区分
  - 触发关键字:触发 AI 检测
  - 黑名单关键字:直接标记为垃圾评论
- 恢复抽查基础概率设置
- 恢复检测范围、白名单等完整设置项
- 恢复自动处理方式和置信度阈值设置
- 更新保存逻辑以支持所有新增选项
- 优化关键字检查函数,支持两种关键字类型
2026-01-27 11:09:52 +08:00

6690 lines
487 KiB
PHP
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
function themeoptions_page(){
/*涓婚閫夐」*/
?>
<script src="<?php bloginfo('template_url'); ?>/assets/vendor/jquery/jquery.min.js"></script>
<script src="<?php bloginfo('template_url'); ?>/assets/vendor/headindex/headindex.js"></script>
<script>!function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){function e(n){var e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375}void 0!==n.easing&&(n.easing.jswing=n.easing.swing);var t=Math.pow,u=Math.sqrt,r=Math.sin,i=Math.cos,a=Math.PI,o=1.70158,c=1.525*o,s=2*a/3,f=2*a/4.5;return n.extend(n.easing,{def:"easeOutQuad",swing:function(e){return n.easing[n.easing.def](e)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-t(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-t(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-t(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-t(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-t(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-t(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-t(-2*n+2,5)/2},easeInSine:function(n){return 1-i(n*a/2)},easeOutSine:function(n){return r(n*a/2)},easeInOutSine:function(n){return-(i(a*n)-1)/2},easeInExpo:function(n){return 0===n?0:t(2,10*n-10)},easeOutExpo:function(n){return 1===n?1:1-t(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:n<.5?t(2,20*n-10)/2:(2-t(2,-20*n+10))/2},easeInCirc:function(n){return 1-u(1-t(n,2))},easeOutCirc:function(n){return u(1-t(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-u(1-t(2*n,2)))/2:(u(1-t(-2*n+2,2))+1)/2},easeInElastic:function(n){return 0===n?0:1===n?1:-t(2,10*n-10)*r((10*n-10.75)*s)},easeOutElastic:function(n){return 0===n?0:1===n?1:t(2,-10*n)*r((10*n-.75)*s)+1},easeInOutElastic:function(n){return 0===n?0:1===n?1:n<.5?-t(2,20*n-10)*r((20*n-11.125)*f)/2:t(2,-20*n+10)*r((20*n-11.125)*f)/2+1},easeInBack:function(n){return 2.70158*n*n*n-o*n*n},easeOutBack:function(n){return 1+2.70158*t(n-1,3)+o*t(n-1,2)},easeInOutBack:function(n){return n<.5?t(2*n,2)*(7.189819*n-c)/2:(t(2*n-2,2)*((c+1)*(2*n-2)+c)+2)/2},easeInBounce:function(n){return 1-e(1-n)},easeOutBounce:e,easeInOutBounce:function(n){return n<.5?(1-e(1-2*n))/2:(1+e(2*n-1))/2}}),n});</script>
<script src="<?php bloginfo('template_url'); ?>/assets/vendor/dragula/dragula.min.js"></script>
<div>
<style type="text/css">
h2{
font-size: 25px;
}
h2:before {
content: '';
background: #000;
height: 16px;
width: 6px;
display: inline-block;
border-radius: 15px;
margin-right: 15px;
}
h3{
font-size: 18px;
}
th.subtitle {
padding: 0;
}
.gu-mirror{position:fixed!important;margin:0!important;z-index:9999!important;opacity:.8;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";filter:alpha(opacity=80)}.gu-hide{display:none!important}.gu-unselectable{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.gu-transit{opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";filter:alpha(opacity=20)}
</style>
<svg width="300" style="margin-top: 20px;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="673.92 415.2 510.83 151.8" enable-background="new 0 0 1920 1080" xml:space="preserve"><g><g><path fill="rgb(94, 114, 228, 0)" stroke="#5E72E4" stroke-width="3" stroke-dasharray="402" stroke-dashoffset="402" d="M811.38,450.13c-2.2-3.81-7.6-6.93-12-6.93h-52.59c-4.4,0-9.8,3.12-12,6.93l-26.29,45.54c-2.2,3.81-2.2,10.05,0,13.86l26.29,45.54c2.2,3.81,7.6,6.93,12,6.93h52.59c4.4,0,9.8-3.12,12-6.93l26.29-45.54c2.2-3.81,2.2-10.05,0-13.86L811.38,450.13z"><animate attributeName="stroke-width" begin="1s" values="3; 0" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><animate attributeName="stroke-dashoffset" begin="0.5s" values="402; 0" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><animate attributeName="fill" begin="1s" values="rgb(94, 114, 228, 0); rgb(94, 114, 228, 0.3)" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/></path></g><g><path fill="rgb(94, 114, 228, 0)" d="M783.65,422.13c-2.2-3.81-7.6-6.93-12-6.93H715.6c-4.4,0-9.8,3.12-12,6.93l-28.03,48.54c-2.2,3.81-2.2,10.05,0,13.86l28.03,48.54c2.2,3.81,7.6,6.93,12,6.93h56.05c4.4,0,9.8-3.12,12-6.93l28.03-48.54c2.2-3.81,2.2-10.05,0-13.86L783.65,422.13z"><animateTransform attributeName="transform" type="translate" begin="1.5s" values="27.73,28; 0,0" dur="1.1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><animate attributeName="fill" begin="1.5s" values="rgb(94, 114, 228, 0); rgb(94, 114, 228, 0.8)" dur="1.1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/></path></g></g><g><g><clipPath id="clipPath_1"><rect x="887.47" y="441.31" width="68.76" height="83.07"/></clipPath><path clip-path="url(#clipPath_1)" fill="none" stroke="#5E72E4" stroke-width="0" stroke-linecap="square" stroke-linejoin="bevel" stroke-dasharray="190" d="M893.52,533.63l28.71-90.3l31.52,90.31"><animate attributeName="stroke-width" begin="1s" values="3; 10" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><animate attributeName="stroke-dashoffset" begin="0.5s" values="190; 0" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><set attributeName="stroke-width" to="3" begin="0.5s" /></path><line clip-path="url(#clipPath_1)" fill="none" stroke="#5E72E4" stroke-width="0" stroke-miterlimit="10" stroke-dasharray="45" x1="940.44" y1="495.5" x2="905" y2="495.5"><animate attributeName="stroke-width" begin="1s" values="3; 10" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><animate attributeName="stroke-dashoffset" begin="0.5s" values="-37; 0" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><set attributeName="stroke-width" to="3" begin="0.5s" /></line></g><g><path fill="none" stroke="#5E72E4" stroke-width="0" stroke-miterlimit="10" stroke-dasharray="56" d="M976.86,469.29v55.09"><animate attributeName="stroke-width" begin="1.15s" values="3; 10" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><animate attributeName="stroke-dashoffset" begin="0.65s" values="56; 0" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><set attributeName="stroke-width" to="3" begin="0.65s" /></path><path fill="none" stroke="#5E72E4" stroke-width="0" stroke-miterlimit="10" stroke-dasharray="38" d="M976.86,489.77c0-9.68,7.85-17.52,17.52-17.52c3.5,0,6.76,1.03,9.5,2.8"><animate attributeName="stroke-width" begin="1.15s" values="3; 10" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><animate attributeName="stroke-dashoffset" begin="0.65s" values="38; 0" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><set attributeName="stroke-width" to="3" begin="0.65s" /></path></g><g><path fill="none" stroke="#5E72E4" stroke-width="0" stroke-miterlimit="10" stroke-dasharray="124" d="M1057.86,492.08c0,10.94-8.87,19.81-19.81,19.81c-10.94,0-19.81-8.87-19.81-19.81s8.87-19.81,19.81-19.81C1048.99,472.27,1057.86,481.14,1057.86,492.08z"><animate attributeName="stroke-width" begin="1.3s" values="3; 10" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><animate attributeName="stroke-dashoffset" begin="0.8s" values="-124; 0" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><set attributeName="stroke-width" to="3" begin="0.8s" /></path><path fill="none" stroke="#5E72E4" stroke-width="0" stroke-miterlimit="10" stroke-dasharray="110" d="M1057.84,467.27v54.05c0,10.94-8.87,19.81-19.81,19.81c-8.36,0-15.51-5.18-18.42-12.5"><animate attributeName="stroke-width" begin="1.3s" values="3; 10" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><animate attributeName="stroke-dashoffset" begin="0.8s" values="110; 0" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><set attributeName="stroke-width" to="3" begin="0.8s" /></path></g><g><path fill="none" stroke="#5E72E4" stroke-width="0" stroke-miterlimit="10" stroke-dasharray="140" d="M1121.83,495.46c0,12.81-9.45,23.19-21.11,23.19s-21.11-10.38-21.11-23.19c0-12.81,9.45-23.19,21.11-23.19S1121.83,482.65,1121.83,495.46z"><animate attributeName="stroke-width" begin="1.45s" values="3; 10" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><animate attributeName="stroke-dashoffset" begin="0.95s" values="-140; 0" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><set attributeName="stroke-width" to="3" begin="0.95s" /></path></g><g><path fill="none" stroke="#5E72E4" stroke-width="0" stroke-miterlimit="10" stroke-dasharray="57" d="M1143.78,524.38v-55.71"><animate attributeName="stroke-width" begin="1.6s" values="3; 10" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><animate attributeName="stroke-dashoffset" begin="1.1s" values="-57; 0" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><set attributeName="stroke-width" to="3" begin="1.1s" /></path><path fill="none" stroke="#5E72E4" stroke-width="0" stroke-miterlimit="10" stroke-dasharray="90" d="M1143.95,490.15c0-9.88,8.01-17.9,17.9-17.9c9.88,0,17.9,8.01,17.9,17.9v34.23"><animate attributeName="stroke-width" begin="1.6s" values="3; 10" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><animate attributeName="stroke-dashoffset" begin="1.1s" values="90; 0" dur="1s" fill="freeze" calcMode="spline" keySplines="0.8 0 0.2 1"/><set attributeName="stroke-width" to="3" begin="1.1s" /></path></g></g></svg>
<p style="margin-top: 20px;">
<a href="https://github.com/solstice23/argon-theme/" target="_blank" style="box-shadow: none;text-decoration: none;">
<svg width="30" height="30" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z" transform="scale(64)" fill="#1B1F23"/>
</svg>
<span style="font-size: 20px;transform: translate(5px,-9px);display: inline-block;">solstice23/argon-theme</span>
</a>
</p>
<h1 style="color: #5e72e4;"><?php _e("Argon 涓婚璁剧疆", 'argon'); ?></h1>
<p><?php _e("鎸変笅", 'argon'); ?> <kbd style="font-family: sans-serif;">Ctrl + F</kbd> <?php _e("鎴栧湪鍙充晶鐩綍涓潵鏌ユ壘璁剧疆", 'argon'); ?></p>
<form method="POST" action="" id="main_form">
<input type="hidden" name="update_themeoptions" value="true" />
<?php wp_nonce_field("argon_update_themeoptions", "argon_update_themeoptions_nonce");?>
<table class="form-table">
<tbody>
<!-- ========== 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><label><?php _e("涓婚棰滆壊", 'argon');?></label></th>
<td>
<input type="color" class="regular-text" name="argon_theme_color" value="<?php echo get_option('argon_theme_color') == "" ? "#5e72e4" : get_option('argon_theme_color'); ?>" style="height:40px;width: 80px;cursor: pointer;"/>
<input type="text" readonly name="argon_theme_color_hex_preview" value="<?php echo get_option('argon_theme_color') == "" ? "#5e72e4" : get_option('argon_theme_color'); ?>" style="height: 40px;width: 80px;vertical-align: bottom;background: #fff;cursor: pointer;" onclick="$('input[name=\'argon_theme_color\']').click()"/></p>
<p class="description"><div style="margin-top: 15px;"><?php _e("閫夋嫨棰勭疆棰滆壊 鎴?, 'argon');?> <span onclick="$('input[name=\'argon_theme_color\']').click()" style="text-decoration: underline;cursor: pointer;"><?php _e("鑷畾涔夎壊鍊?, 'argon');?></span>
<br/><br/><?php _e("棰勭疆棰滆壊锛?, 'argon');?></div>
<div class="themecolor-preview-container">
<div class="themecolor-preview-box"><div class="themecolor-preview" style="background:#5e72e4;" color="#5e72e4"></div><div class="themecolor-name">Argon (<?php _e("榛樿", 'argon');?>)</div></div>
<div class="themecolor-preview-box"><div class="themecolor-preview" style="background:#fa7298;" color="#fa7298"></div><div class="themecolor-name"><?php _e("绮?, 'argon');?></div></div>
<div class="themecolor-preview-box"><div class="themecolor-preview" style="background:#009688;" color="#009688"></div><div class="themecolor-name"><?php _e("姘撮腑闈?, 'argon');?></div></div>
<div class="themecolor-preview-box"><div class="themecolor-preview" style="background:#607d8b;" color="#607d8b"></div><div class="themecolor-name"><?php _e("钃濈伆", 'argon');?></div></div>
<div class="themecolor-preview-box"><div class="themecolor-preview" style="background:#2196f3;" color="#2196f3"></div><div class="themecolor-name"><?php _e("澶╄摑", 'argon');?></div></div>
<div class="themecolor-preview-box"><div class="themecolor-preview" style="background:#3f51b5;" color="#3f51b5"></div><div class="themecolor-name"><?php _e("闈涜摑", 'argon');?></div></div>
<div class="themecolor-preview-box"><div class="themecolor-preview" style="background:#ff9700;" color="#ff9700"></div><div class="themecolor-name"><?php _e("姗?, 'argon');?></div></div>
<div class="themecolor-preview-box"><div class="themecolor-preview" style="background:#109d58;" color="#109d58"></div><div class="themecolor-name"><?php _e("缁?, 'argon');?></div></div>
<div class="themecolor-preview-box"><div class="themecolor-preview" style="background:#dc4437;" color="#dc4437"></div><div class="themecolor-name"><?php _e("绾?, 'argon');?></div></div>
<div class="themecolor-preview-box"><div class="themecolor-preview" style="background:#673bb7;" color="#673bb7"></div><div class="themecolor-name"><?php _e("绱?, 'argon');?></div></div>
<div class="themecolor-preview-box"><div class="themecolor-preview" style="background:#212121;" color="#212121"></div><div class="themecolor-name"><?php _e("榛?, 'argon');?></div></div>
<div class="themecolor-preview-box"><div class="themecolor-preview" style="background:#795547;" color="#795547"></div><div class="themecolor-name"><?php _e("妫?, 'argon');?></div></div>
</div>
<br/><?php _e('涓婚鑹蹭笌 "Banner 娓愬彉鑳屾櫙鏍峰紡" 閫夐」鎼厤浣跨敤鏁堟灉鏇翠匠', 'argon');?>
<script>
$("input[name='argon_theme_color']").on("change" , function(){
$("input[name='argon_theme_color_hex_preview']").val($("input[name='argon_theme_color']").val());
});
$(".themecolor-preview").on("click" , function(){
$("input[name='argon_theme_color']").val($(this).attr("color"));
$("input[name='argon_theme_color']").trigger("change");
});
</script>
<style>
.themecolor-name{width: 100px;text-align: center;}
.themecolor-preview{width: 50px;height: 50px;margin: 20px 25px 5px 25px;line-height: 50px;color: #fff;margin-right: 0px;font-size: 15px;text-align: center;display: inline-block;border-radius: 50px;transition: all .3s ease;cursor: pointer;}
.themecolor-preview-box{width: max-content;width: -moz-max-content;display: inline-block;}
div.themecolor-preview:hover{transform: scale(1.1);}
div.themecolor-preview:active{transform: scale(1.2);}
.themecolor-preview-container{
max-width: calc(100% - 180px);
}
@media screen and (max-width:960px){
.themecolor-preview-container{
max-width: unset;
}
}
</style>
<?php $argon_show_customize_theme_color_picker = get_option('argon_show_customize_theme_color_picker');?>
<div style="margin-top: 15px;">
<label>
<input type="checkbox" name="argon_show_customize_theme_color_picker" value="true" <?php if ($argon_show_customize_theme_color_picker!='false'){echo 'checked';}?>/> <?php _e('鍏佽鐢ㄦ埛鑷畾涔変富棰樿壊锛堜綅浜庡崥瀹㈡诞鍔ㄦ搷浣滄爮璁剧疆鑿滃崟涓級', 'argon');?>
</label>
</div>
</p>
</td>
</tr>
<tr>
<th><label><?php _e('娌夋蹈寮忎富棰樿壊', 'argon');?></label></th>
<td>
<select name="argon_enable_immersion_color">
<?php $argon_enable_immersion_color = get_option('argon_enable_immersion_color', 'false'); ?>
<option value="true" <?php if ($argon_enable_immersion_color=='true'){echo 'selected';} ?>><?php _e('寮€鍚?, 'argon');?></option>
<option value="false" <?php if ($argon_enable_immersion_color=='false'){echo 'selected';} ?>><?php _e('鍏抽棴', 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗锛屼富棰樿壊灏嗕細鍏ㄥ眬娌夋蹈銆?br/>椤甸潰鑳屾櫙銆佸崱鐗囧強椤甸潰涓婄殑鍏跺畠鍏冪礌浼氬彉涓烘矇娴稿紡涓婚鑹诧紙姘旀皼鑹诧級銆傜被浼?Material You銆?, 'argon');?><br/></p>
<div style="display: flex;flex-direction: row;flex-wrap: wrap;align-items: center;margin-top:15px;">
<div class="immersion-color-example" style="background: #f4f5f7;"><div class="immersion-color-example-card" style="background: #fff;"></div></div>
<div class="immersion-color-example-arrow"><span class="dashicons dashicons-arrow-right-alt"></span></div>
<div class="immersion-color-example" style="background: #e8ebfb;"><div class="immersion-color-example-card" style="background: #f2f4fd;"></div></div>
<div>
<style>.immersion-color-example {width: 250px;height: 150px;border-radius: 4px;display: inline-block;position: relative;box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);}.immersion-color-example-arrow {margin-left: 20px;margin-right: 20px;color: #646970;}.immersion-color-example-card {position: absolute;left: 40px;right: 40px;top: 35px;bottom: 35px;background: #fff;box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);}</style>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-dark-mode"><?php _e('澶滈棿妯″紡', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('澶滈棿妯″紡鍒囨崲鏂规', 'argon');?></label></th>
<td>
<select name="argon_darkmode_autoswitch">
<?php $argon_darkmode_autoswitch = get_option('argon_darkmode_autoswitch'); ?>
<option value="false" <?php if ($argon_darkmode_autoswitch=='false'){echo 'selected';} ?>><?php _e('榛樿浣跨敤鏃ラ棿妯″紡', 'argon');?></option>
<option value="alwayson" <?php if ($argon_darkmode_autoswitch=='alwayson'){echo 'selected';} ?>><?php _e('榛樿浣跨敤澶滈棿妯″紡', 'argon');?></option>
<option value="system" <?php if ($argon_darkmode_autoswitch=='system'){echo 'selected';} ?>><?php _e('璺熼殢绯荤粺澶滈棿妯″紡', 'argon');?></option>
<option value="time" <?php if ($argon_darkmode_autoswitch=='time'){echo 'selected';} ?>><?php _e('鏍规嵁鏃堕棿鍒囨崲澶滈棿妯″紡 (22:00 ~ 7:00)', 'argon');?></option>
</select>
<p class="description"><?php _e('Argon 涓婚浼氭牴鎹繖閲岀殑閫夐」鏉ュ喅瀹氭槸鍚﹂粯璁や娇鐢ㄥ闂存ā寮忋€?, 'argon');?><br/><?php _e('鐢ㄦ埛涔熷彲浠ユ墜鍔ㄥ垏鎹㈠闂存ā寮忥紝鐢ㄦ埛鐨勮缃皢淇濈暀鍒版爣绛鹃〉鍏抽棴涓烘銆?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('澶滈棿妯″紡棰滆壊鏂规', 'argon');?></label></th>
<td>
<select name="argon_enable_amoled_dark">
<?php $argon_enable_amoled_dark = get_option('argon_enable_amoled_dark'); ?>
<option value="false" <?php if ($argon_enable_amoled_dark=='false'){echo 'selected';} ?>><?php _e('鐏伴粦', 'argon');?></option>
<option value="true" <?php if ($argon_enable_amoled_dark=='true'){echo 'selected';} ?>><?php _e('鏆楅粦 (AMOLED Black)', 'argon');?></option>
</select>
<p class="description"><?php _e('澶滈棿妯″紡榛樿鐨勯厤鑹叉柟妗堛€?, 'argon');?></p>
</td>
</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><label><?php _e('鍗$墖鍦嗚澶у皬', 'argon');?></label></th>
<td>
<input type="number" name="argon_card_radius" min="0" max="30" step="0.5" value="<?php echo (get_option('argon_card_radius') == '' ? '4' : get_option('argon_card_radius')); ?>"/> px
<p class="description"><?php _e('鍗$墖鐨勫渾瑙掑ぇ灏忥紝榛樿涓?, 'argon');?> <code>4px</code><?php _e('銆傚缓璁缃负', 'argon');?> <code>2px</code> - <code>15px</code></p>
</td>
</tr>
<tr>
<th><label><?php _e('鍗$墖闃村奖', 'argon');?></label></th>
<td>
<div class="radio-h">
<?php $argon_card_shadow = (get_option('argon_card_shadow') == '' ? 'default' : get_option('argon_card_shadow')); ?>
<label>
<input name="argon_card_shadow" type="radio" value="default" <?php if ($argon_card_shadow=='default'){echo 'checked';} ?>>
<?php _e('娴呴槾褰?, 'argon');?>
</label>
<label>
<input name="argon_card_shadow" type="radio" value="big" <?php if ($argon_card_shadow=='big'){echo 'checked';} ?>>
<?php _e('娣遍槾褰?, 'argon');?>
</label>
</div>
<p class="description"><?php _e('鍗$墖榛樿闃村奖澶у皬銆?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-font"><?php _e('瀛椾綋', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('榛樿瀛椾綋', 'argon');?></label></th>
<td>
<div class="radio-h">
<?php $argon_font = (get_option('argon_font') == '' ? 'sans-serif' : get_option('argon_font')); ?>
<label>
<input name="argon_font" type="radio" value="sans-serif" <?php if ($argon_font=='sans-serif'){echo 'checked';} ?>>
Sans Serif
</label>
<label>
<input name="argon_font" type="radio" value="serif" <?php if ($argon_font=='serif'){echo 'checked';} ?>>
Serif
</label>
</div>
<p class="description"><?php _e('榛樿浣跨敤鏃犺‖绾垮瓧浣?琛嚎瀛椾綋銆?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-animation"><?php _e('鍔ㄧ敾鏁堟灉', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('骞虫粦婊氬姩', 'argon');?></label></th>
<td>
<select name="argon_enable_smoothscroll_type">
<?php $enable_smoothscroll_type = get_option('argon_enable_smoothscroll_type'); ?>
<option value="1" <?php if ($enable_smoothscroll_type=='1'){echo 'selected';} ?>><?php _e('浣跨敤骞虫粦婊氬姩鏂规 1 (骞虫粦) (鎺ㄨ崘)', 'argon');?></option>
<option value="1_pulse" <?php if ($enable_smoothscroll_type=='1_pulse'){echo 'selected';} ?>><?php _e('浣跨敤骞虫粦婊氬姩鏂规 1 (鑴夊啿寮忔粴鍔? (浠?Edge) (鎺ㄨ崘)', 'argon');?></option>
<option value="2" <?php if ($enable_smoothscroll_type=='2'){echo 'selected';} ?>><?php _e('浣跨敤骞虫粦婊氬姩鏂规 2 (杈冪ǔ)', 'argon');?></option>
<option value="3" <?php if ($enable_smoothscroll_type=='3'){echo 'selected';} ?>><?php _e('浣跨敤骞虫粦婊氬姩鏂规 3', 'argon');?></option>
<option value="disabled" <?php if ($enable_smoothscroll_type=='disabled'){echo 'selected';} ?>><?php _e('涓嶄娇鐢ㄥ钩婊戞粴鍔?, 'argon');?></option>
</select>
<p class="description"><?php _e('鑳藉寮烘祻瑙堜綋楠岋紝浣嗗彲鑳藉嚭鐜颁竴浜涘皬闂锛屽鏋滄湁闂璇峰垏鎹㈡柟妗堟垨鍏抽棴骞虫粦婊氬姩', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('杩涘叆鏂囩珷鍔ㄧ敾', 'argon');?></label></th>
<td>
<select name="argon_enable_into_article_animation">
<?php $argon_enable_into_article_animation = get_option('argon_enable_into_article_animation'); ?>
<option value="false" <?php if ($argon_enable_into_article_animation=='false'){echo 'selected';} ?>><?php _e('涓嶅惎鐢?, 'argon');?></option>
<option value="true" <?php if ($argon_enable_into_article_animation=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
</select>
<p class="description"><?php _e('浠庨椤垫垨鍒嗙被鐩綍杩涘叆鏂囩珷鏃讹紝浣跨敤骞虫粦杩囨浮锛堝彲鑳藉奖鍝嶅姞杞芥枃绔犳椂鐨勬€ц兘锛?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('Pjax 婊氬姩鍔ㄧ敾', 'argon');?></label></th>
<td>
<select name="argon_disable_pjax_animation">
<?php $argon_disable_pjax_animation = get_option('argon_disable_pjax_animation'); ?>
<option value="false" <?php if ($argon_disable_pjax_animation=='false'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="true" <?php if ($argon_disable_pjax_animation=='true'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('Pjax 鏇挎崲椤甸潰鍐呭鍚庝細骞虫粦婊氬姩鍒伴〉闈㈤《閮紝濡傛灉浣犱笉鍠滄锛屽彲浠ョ鐢ㄨ繖涓€夐」', 'argon');?></p>
</td>
</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><label><?php _e('椤甸潰甯冨眬', 'argon');?></label></th>
<td>
<div class="radio-with-img">
<?php $argon_page_layout = get_option('argon_page_layout', 'double'); ?>
<div class="radio-img">
<svg width="250" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect width="1920" height="1080" style="fill:#e6e6e6"/><g style="opacity:0.5"><rect width="1920" height="381" style="fill:#5e72e4"/></g><rect x="388.5" y="256" width="258" height="179" style="fill:#5e72e4"/><rect x="388.5" y="470" width="258" height="485" style="fill:#fff"/><rect x="689.5" y="256.5" width="842" height="250" style="fill:#fff"/><rect x="689.5" y="536.5" width="842" height="250" style="fill:#fff"/><rect x="689.5" y="817" width="842" height="250" style="fill:#fff"/></svg>
</div>
<label><input name="argon_page_layout" type="radio" value="double" <?php if ($argon_page_layout=='double'){echo 'checked';} ?>> <?php _e('鍙屾爮', 'argon');?></label>
</div>
<div class="radio-with-img">
<div class="radio-img">
<svg width="250" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect width="1920" height="1080" style="fill:#e6e6e6"/><g style="opacity:0.5"><rect width="1920" height="381" style="fill:#5e72e4"/></g><rect x="428.25" y="256.5" width="1063.5" height="250" style="fill:#fff"/><rect x="428.25" y="536.5" width="1063.5" height="250" style="fill:#fff"/><rect x="428.25" y="817" width="1063.5" height="250" style="fill:#fff"/></svg>
</div>
<label><input name="argon_page_layout" type="radio" value="single" <?php if ($argon_page_layout=='single'){echo 'checked';} ?>> <?php _e('鍗曟爮', 'argon');?></label>
</div>
<div class="radio-with-img">
<div class="radio-img">
<svg width="250" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect width="1920" height="1080" style="fill:#e6e6e6"/><g style="opacity:0.5"><rect width="1920" height="381" style="fill:#5e72e4"/></g><rect x="237.5" y="256" width="258" height="179" style="fill:#5e72e4"/><rect x="237.5" y="470" width="258" height="485" style="fill:#fff"/><rect x="538.5" y="256.5" width="842" height="250" style="fill:#fff"/><rect x="538.5" y="536.5" width="842" height="250" style="fill:#fff"/><rect x="538.5" y="817" width="842" height="250" style="fill:#fff"/><rect x="1424" y="256" width="258" height="811" style="fill:#fff"/></svg>
</div>
<label><input name="argon_page_layout" type="radio" value="triple" <?php if ($argon_page_layout=='triple'){echo 'checked';} ?>> <?php _e('涓夋爮', 'argon');?></label>
</div>
<div class="radio-with-img">
<div class="radio-img">
<svg width="250" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect width="1920" height="1080" style="fill:#e6e6e6"/><g style="opacity:0.5"><rect width="1920" height="381" style="fill:#5e72e4"/></g><rect x="1273.5" y="256" width="258" height="179" style="fill:#5e72e4"/><rect x="1273.5" y="470" width="258" height="485" style="fill:#fff"/><rect x="388.5" y="256.5" width="842" height="250" style="fill:#fff"/><rect x="388.5" y="536.5" width="842" height="250" style="fill:#fff"/><rect x="388.5" y="817" width="842" height="250" style="fill:#fff"/></svg>
</div>
<label><input name="argon_page_layout" type="radio" value="double-reverse" <?php if ($argon_page_layout=='double-reverse'){echo 'checked';} ?>> <?php _e('鍙屾爮(鍙嶈浆)', 'argon');?></label>
</div>
<p class="description" style="margin-top: 15px;"><?php _e('浣跨敤鍗曟爮鏃讹紝鍏充簬宸︿晶鏍忕殑璁剧疆灏嗗け鏁堛€?, 'argon');?><br/><?php _e('浣跨敤涓夋爮鏃讹紝璇峰墠寰€ "澶栬-灏忓伐鍏? 璁剧疆椤甸潰閰嶇疆鍙充晶鏍忓唴瀹广€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏂囩珷鍒楄〃甯冨眬', 'argon');?></label></th>
<td>
<div class="radio-with-img">
<?php $argon_article_list_waterflow = get_option('argon_article_list_waterflow', '1'); ?>
<div class="radio-img">
<svg width="200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1880.72 1340.71"><rect width="1880.72" height="1340.71" style="fill:#f7f8f8"/><rect x="46.34" y="46.48" width="1785.73" height="412.09" style="fill:#abb7ff"/><rect x="46.34" y="496.66" width="1785.73" height="326.05" style="fill:#abb7ff"/><rect x="46.34" y="860.8" width="1785.73" height="350.87" style="fill:#abb7ff"/><rect x="46.34" y="1249.76" width="1785.73" height="90.94" style="fill:#abb7ff"/></svg>
</div>
<label><input name="argon_article_list_waterflow" type="radio" value="1" <?php if ($argon_article_list_waterflow=='1'){echo 'checked';} ?>> <?php _e('鍗曞垪', 'argon');?></label>
</div>
<div class="radio-with-img">
<div class="radio-img">
<svg width="200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1880.72 1340.71"><rect width="1880.72" height="1340.71" style="fill:#f7f8f8"/><rect x="46.34" y="46.48" width="873.88" height="590.33" style="fill:#abb7ff"/><rect x="961.62" y="46.48" width="873.88" height="390.85" style="fill:#abb7ff"/><rect x="961.62" y="480.65" width="873.88" height="492.96" style="fill:#abb7ff"/><rect x="46.34" y="681.35" width="873.88" height="426.32" style="fill:#abb7ff"/><rect x="961.62" y="1016.92" width="873.88" height="323.79" style="fill:#abb7ff"/><rect x="46.34" y="1152.22" width="873.88" height="188.49" style="fill:#abb7ff"/></svg>
</div>
<label><input name="argon_article_list_waterflow" type="radio" value="2" <?php if ($argon_article_list_waterflow=='2'){echo 'checked';} ?>> <?php _e('鐎戝竷娴?(2 鍒?', 'argon');?></label>
</div>
<div class="radio-with-img">
<div class="radio-img">
<svg width="200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1880.72 1340.71"><rect width="1880.72" height="1340.71" style="fill:#f7f8f8"/><rect x="46.34" y="46.48" width="568.6" height="531.27" style="fill:#abb7ff"/><rect x="656.62" y="46.48" width="568.6" height="400.51" style="fill:#abb7ff"/><rect x="1266.9" y="46.48" width="568.6" height="604.09" style="fill:#abb7ff"/><rect x="656.62" y="485.07" width="568.6" height="428.67" style="fill:#abb7ff"/><rect x="46.34" y="615.82" width="568.6" height="407.16" style="fill:#abb7ff"/><rect x="656.62" y="951.83" width="568.6" height="388.87" style="fill:#abb7ff"/><rect x="1266.9" y="695.24" width="568.6" height="400.53" style="fill:#abb7ff"/><rect x="1266.9" y="1140.44" width="568.6" height="200.26" style="fill:#abb7ff"/><rect x="46.34" y="1061.06" width="568.6" height="279.64" style="fill:#abb7ff"/></svg>
</div>
<label><input name="argon_article_list_waterflow" type="radio" value="3" <?php if ($argon_article_list_waterflow=='3'){echo 'checked';} ?>> <?php _e('鐎戝竷娴?(3 鍒?', 'argon');?></label>
</div>
<div class="radio-with-img">
<div class="radio-img">
<svg width="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1930.85 1340.71"><defs><clipPath id="a" transform="translate(18.64)"><rect x="-385.62" y="718.3" width="2290.76" height="1028.76" transform="translate(599.83 -206.47) rotate(25.31)" style="fill:none"/></clipPath><clipPath id="b" transform="translate(18.64)"><rect x="2.1" y="252.4" width="1878.62" height="991.45" style="fill:none"/></clipPath></defs><rect x="18.64" width="1880.72" height="1340.71" style="fill:#f7f8f8"/><rect x="64.98" y="46.48" width="568.6" height="531.27" style="fill:#abb7ff"/><rect x="675.26" y="46.48" width="568.6" height="400.51" style="fill:#abb7ff"/><rect x="1285.55" y="46.48" width="568.6" height="604.09" style="fill:#abb7ff"/><rect x="675.26" y="485.07" width="568.6" height="428.67" style="fill:#abb7ff"/><rect x="64.98" y="615.82" width="568.6" height="407.16" style="fill:#abb7ff"/><rect x="675.26" y="951.83" width="568.6" height="388.87" style="fill:#abb7ff"/><rect x="1285.55" y="695.24" width="568.6" height="400.53" style="fill:#abb7ff"/><rect x="1285.55" y="1140.44" width="568.6" height="200.26" style="fill:#abb7ff"/><rect x="64.98" y="1061.06" width="568.6" height="279.64" style="fill:#abb7ff"/><g style="clip-path:url(#a)"><rect x="18.64" width="1880.72" height="1340.71" style="fill:#f7f8f8"/><rect x="64.98" y="46.48" width="873.88" height="590.33" style="fill:#abb7ff"/><rect x="980.27" y="46.48" width="873.88" height="390.85" style="fill:#abb7ff"/><rect x="980.27" y="480.65" width="873.88" height="492.96" style="fill:#abb7ff"/><rect x="64.98" y="681.35" width="873.88" height="426.32" style="fill:#abb7ff"/><rect x="980.27" y="1016.92" width="873.88" height="323.79" style="fill:#abb7ff"/><rect x="64.98" y="1152.22" width="873.88" height="188.49" style="fill:#abb7ff"/></g><g style="clip-path:url(#b)"><line x1="18.64" y1="304.46" x2="1912.21" y2="1199.81" style="fill:none;stroke:#f7f8f8;stroke-linecap:square;stroke-miterlimit:10;stroke-width:28px"/></g></svg>
</div>
<label><input name="argon_article_list_waterflow" type="radio" value="2and3" <?php if ($argon_article_list_waterflow=='2and3'){echo 'checked';} ?>> <?php _e('鐎戝竷娴?(鍒楁暟鑷€傚簲)', 'argon');?></label>
</div>
<p class="description" style="margin-top: 15px;"><?php _e('鍒楁暟鑷€傚簲鐨勭€戝竷娴佷細鏍规嵁鍙鍖哄搴﹁嚜鍔ㄨ皟鏁寸€戝竷娴佸垪鏁般€?, 'argon');?><br/><?php _e('寤鸿鍙湁浣跨敤鍗曟爮椤甸潰甯冨眬鏃舵墠寮€鍚?3 鍒楃€戝竷娴併€?, 'argon');?><br/><?php _e('鎵€鏈夌€戝竷娴佸竷灞€閮戒細鍦ㄥ睆骞曞搴﹁繃灏忔椂鍙樹负鍗曞垪甯冨眬銆?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏂囩珷鍒楄〃鍗$墖甯冨眬', 'argon');?></label></th>
<td>
<div class="radio-with-img">
<?php $argon_article_list_layout = get_option('argon_article_list_layout', '1'); ?>
<div class="radio-img">
<svg width="250" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1921 871"><rect x="0.5" y="0.5" width="1920" height="870" style="fill:#f7f8f8;stroke:#231815;stroke-miterlimit:10"/><rect x="0.5" y="0.5" width="1920" height="538.05" style="fill:#abb7ff"/><rect x="48.5" y="613.55" width="1806" height="35" rx="4" style="fill:#efefef"/><rect x="48.5" y="663.05" width="1806" height="35" rx="4" style="fill:#efefef"/><rect x="48.5" y="712.55" width="1806" height="35" rx="4" style="fill:#efefef"/><rect x="48.5" y="792.52" width="116.97" height="38.07" rx="4" style="fill:#dcdddd"/><rect x="178.95" y="792.52" width="97.38" height="38.07" rx="4" style="fill:#dcdddd"/><rect x="288.4" y="792.52" width="125.79" height="38.07" rx="4" style="fill:#dcdddd"/><g style="opacity:0.66"><rect x="432.78" y="320.9" width="1055.43" height="55.93" rx="4" style="fill:#f7f8f8"/></g><g style="opacity:0.31"><rect x="734.76" y="411.73" width="451.48" height="25.08" rx="4" style="fill:#fff"/></g><g style="opacity:0.31"><rect x="734.76" y="453.24" width="451.48" height="25.08" rx="4" style="fill:#fff"/></g></svg>
</div>
<label><input name="argon_article_list_layout" type="radio" value="1" <?php if ($argon_article_list_layout=='1'){echo 'checked';} ?>> <?php _e('甯冨眬', 'argon');?> 1</label>
</div>
<div class="radio-with-img">
<div class="radio-img">
<svg width="250" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 870"><rect width="1920" height="870" style="fill:#f7f8f8;stroke: #231815;stroke-miterlimit: 10;"/><rect width="630.03" height="870" style="fill:#abb7ff"/><rect x="689.57" y="174.16" width="1144.6" height="35" rx="4" style="fill:#efefef"/><rect x="689.57" y="238.66" width="1144.6" height="35" rx="4" style="fill:#efefef"/><rect x="689.57" y="303.16" width="1144.6" height="35" rx="4" style="fill:#efefef"/><rect x="689.57" y="792.02" width="116.97" height="38.07" rx="4" style="fill:#dcdddd"/><rect x="820.02" y="792.02" width="97.38" height="38.07" rx="4" style="fill:#dcdddd"/><rect x="929.47" y="792.02" width="125.79" height="38.07" rx="4" style="fill:#dcdddd"/><g style="opacity:0.23"><rect x="689.57" y="52.26" width="1055.43" height="55.93" rx="4" style="fill:#5e72e4"/></g><rect x="689.57" y="677.09" width="451.48" height="25.08" rx="4" style="fill:#efefef"/><rect x="689.57" y="718.6" width="451.48" height="25.08" rx="4" style="fill:#efefef"/><rect x="689.57" y="363.63" width="1144.6" height="35" rx="4" style="fill:#efefef"/><rect x="689.57" y="426.13" width="1144.6" height="35" rx="4" style="fill:#efefef"/><rect x="689.57" y="492.63" width="1144.6" height="35" rx="4" style="fill:#efefef"/></svg>
</div>
<label><input name="argon_article_list_layout" type="radio" value="2" <?php if ($argon_article_list_layout=='2'){echo 'checked';} ?>> <?php _e('甯冨眬', 'argon');?> 2</label>
</div>
<div class="radio-with-img">
<div class="radio-img">
<svg width="250" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1921 871"><rect x="0.5" y="0.5" width="1920" height="870" style="fill:#f7f8f8;stroke:#231815;stroke-miterlimit:10"/><rect x="0.5" y="0.5" width="1920" height="363.36" style="fill:#abb7ff"/><rect x="48.5" y="613.55" width="1806" height="35" rx="4" style="fill:#efefef"/><rect x="48.5" y="663.05" width="1806" height="35" rx="4" style="fill:#efefef"/><rect x="48.5" y="712.55" width="1806" height="35" rx="4" style="fill:#efefef"/><rect x="48.5" y="792.52" width="116.97" height="38.07" rx="4" style="fill:#dcdddd"/><rect x="178.95" y="792.52" width="97.38" height="38.07" rx="4" style="fill:#dcdddd"/><rect x="288.4" y="792.52" width="125.79" height="38.07" rx="4" style="fill:#dcdddd"/><g style="opacity:0.23"><rect x="48.5" y="410.53" width="1055.43" height="55.93" rx="4" style="fill:#5e72e4"/></g><rect x="48.2" y="500.22" width="451.48" height="25.08" rx="4" style="fill:#efefef"/><rect x="48.2" y="541.72" width="451.48" height="25.08" rx="4" style="fill:#efefef"/></svg>
</div>
<label><input name="argon_article_list_layout" type="radio" value="3" <?php if ($argon_article_list_layout=='3'){echo 'checked';} ?>> <?php _e('甯冨眬', 'argon');?> 3</label>
</div>
<p class="description"><?php _e('姝よ缃粎瀵规闈㈢鐢熸晥', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('绉诲姩绔枃绔犲垪琛ㄥ崱鐗囧竷灞€', 'argon');?></label></th>
<td>
<div class="radio-with-img">
<?php $argon_article_list_layout_mobile = get_option('argon_article_list_layout_mobile', '1'); ?>
<div class="radio-img">
<svg width="150" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 700"><rect width="400" height="700" rx="20" style="fill:#f7f8f8;stroke:#231815;stroke-miterlimit:10"/><rect x="20" y="20" width="360" height="280" rx="8" style="fill:#abb7ff"/><rect x="20" y="320" width="360" height="25" rx="4" style="fill:#efefef"/><rect x="20" y="360" width="360" height="25" rx="4" style="fill:#efefef"/><rect x="20" y="400" width="360" height="25" rx="4" style="fill:#efefef"/><rect x="20" y="450" width="200" height="20" rx="4" style="fill:#dcdddd"/></svg>
</div>
<label><input name="argon_article_list_layout_mobile" type="radio" value="1" <?php if ($argon_article_list_layout_mobile=='1'){echo 'checked';} ?>> <?php _e('甯冨眬', 'argon');?> 1 (<?php _e('澶у浘', 'argon');?>)</label>
</div>
<div class="radio-with-img">
<div class="radio-img">
<svg width="150" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 700"><rect width="400" height="700" rx="20" style="fill:#f7f8f8;stroke:#231815;stroke-miterlimit:10"/><rect x="20" y="20" width="360" height="180" rx="8" style="fill:#abb7ff"/><rect x="20" y="220" width="360" height="20" rx="4" style="fill:#efefef"/><rect x="20" y="250" width="360" height="20" rx="4" style="fill:#efefef"/><rect x="20" y="280" width="360" height="20" rx="4" style="fill:#efefef"/><rect x="20" y="320" width="150" height="16" rx="4" style="fill:#dcdddd"/></svg>
</div>
<label><input name="argon_article_list_layout_mobile" type="radio" value="2" <?php if ($argon_article_list_layout_mobile=='2'){echo 'checked';} ?>> <?php _e('甯冨眬', 'argon');?> 2 (<?php _e('绱у噾', 'argon');?>)</label>
</div>
<div class="radio-with-img">
<div class="radio-img">
<svg width="150" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 700"><rect width="400" height="700" rx="20" style="fill:#f7f8f8;stroke:#231815;stroke-miterlimit:10"/><rect x="20" y="20" width="120" height="100" rx="8" style="fill:#abb7ff"/><rect x="160" y="30" width="220" height="18" rx="4" style="fill:#efefef"/><rect x="160" y="60" width="220" height="14" rx="4" style="fill:#efefef"/><rect x="160" y="85" width="150" height="12" rx="4" style="fill:#dcdddd"/></svg>
</div>
<label><input name="argon_article_list_layout_mobile" type="radio" value="3" <?php if ($argon_article_list_layout_mobile=='3'){echo 'checked';} ?>> <?php _e('甯冨眬', 'argon');?> 3 (<?php _e('妯悜', 'argon');?>)</label>
</div>
<p class="description"><?php _e('姝よ缃粎瀵圭Щ鍔ㄧ鐢熸晥锛屼笌妗岄潰绔竷灞€鐙珛', 'argon');?></p>
</td>
</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><label><?php _e('椤舵爮鏄剧ず鐘舵€?, 'argon');?></label></th>
<td>
<select name="argon_enable_headroom">
<?php $argon_enable_headroom = get_option('argon_enable_headroom'); ?>
<option value="false" <?php if ($argon_enable_headroom=='false'){echo 'selected';} ?>><?php _e('濮嬬粓鍥哄畾鎮诞', 'argon');?></option>
<option value="true" <?php if ($argon_enable_headroom=='true'){echo 'selected';} ?>><?php _e('婊氬姩鏃惰嚜鍔ㄦ姌鍙?, 'argon');?></option>
<option value="absolute" <?php if ($argon_enable_headroom=='absolute'){echo 'selected';} ?>><?php _e('涓嶅浐瀹?, 'argon');?></option>
</select>
<p class="description"><?php _e('濮嬬粓鍥哄畾鎮诞: 姘歌繙鍥哄畾鎮诞鍦ㄩ〉闈㈡渶涓婃柟', 'argon');?><br/><?php _e('婊氬姩鏃惰嚜鍔ㄦ姌鍙? 鍦ㄩ〉闈㈠悜涓嬫粴鍔ㄦ椂闅愯棌椤舵爮锛屽悜涓婃粴鍔ㄦ椂鏄剧ず椤舵爮', 'argon');?><br/><?php _e('涓嶅浐瀹? 鍙湁鍦ㄦ粴鍔ㄥ埌椤甸潰鏈€椤剁鏃舵墠鏄剧ず椤舵爮', 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-toolbar-title"><?php _e('椤舵爮鏍囬', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('椤舵爮鏍囬', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_toolbar_title" value="<?php echo get_option('argon_toolbar_title'); ?>"/></p>
<p class="description"><?php _e('鐣欑┖鍒欐樉绀哄崥瀹㈠悕绉帮紝杈撳叆 <code>--hidden--</code> 鍙互闅愯棌鏍囬', 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-toolbar-icon"><?php _e('椤舵爮鍥炬爣', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鍥炬爣鍦板潃', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_toolbar_icon" value="<?php echo get_option('argon_toolbar_icon'); ?>"/>
<p class="description"><?php _e('鍥剧墖鍦板潃锛岀暀绌哄垯涓嶆樉绀?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鍥炬爣閾炬帴', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_toolbar_icon_link" value="<?php echo get_option('argon_toolbar_icon_link'); ?>"/>
<p class="description"><?php _e('鐐瑰嚮鍥炬爣鍚庝細璺宠浆鍒扮殑閾炬帴锛岀暀绌哄垯涓嶈烦杞?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-toolbar-appearance"><?php _e('椤舵爮澶栬', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('椤舵爮姣涚幓鐠冩晥鏋?, 'argon');?></label></th>
<td>
<select name="argon_toolbar_blur">
<?php $argon_toolbar_blur = get_option('argon_toolbar_blur'); ?>
<option value="false" <?php if ($argon_toolbar_blur=='false'){echo 'selected';} ?>><?php _e('鍏抽棴', 'argon');?></option>
<option value="true" <?php if ($argon_toolbar_blur=='true'){echo 'selected';} ?>><?php _e('寮€鍚?, 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚細甯︽潵寰皬鐨勬€ц兘鎹熷け銆?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('椤舵爮鏍峰紡', 'argon');?></label></th>
<td>
<select name="argon_toolbar_style">
<?php $argon_toolbar_style = get_option('argon_toolbar_style', 'default'); ?>
<option value="default" <?php if ($argon_toolbar_style=='default'){echo 'selected';} ?>><?php _e('榛樿', 'argon');?></option>
<option value="gradient" <?php if ($argon_toolbar_style=='gradient'){echo 'selected';} ?>><?php _e('娓愬彉鑳屾櫙', 'argon');?></option>
<option value="glass" <?php if ($argon_toolbar_style=='glass'){echo 'selected';} ?>><?php _e('鐜荤拑鎬?, 'argon');?></option>
</select>
<p class="description"><?php _e('閫夋嫨椤舵爮鐨勮瑙夐鏍笺€傛笎鍙樿儗鏅細浣跨敤涓婚鑹叉笎鍙橈紝鐜荤拑鎬佷細鍛堢幇鍗婇€忔槑姣涚幓鐠冩晥鏋溿€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('椤舵爮闃村奖', 'argon');?></label></th>
<td>
<select name="argon_toolbar_shadow">
<?php $argon_toolbar_shadow = get_option('argon_toolbar_shadow', 'false'); ?>
<option value="false" <?php if ($argon_toolbar_shadow=='false'){echo 'selected';} ?>><?php _e('鍏抽棴', 'argon');?></option>
<option value="true" <?php if ($argon_toolbar_shadow=='true'){echo 'selected';} ?>><?php _e('寮€鍚?, 'argon');?></option>
</select>
<p class="description"><?php _e('涓洪《鏍忔坊鍔犲簳閮ㄩ槾褰辨晥鏋溿€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('椤舵爮搴曢儴杈规', 'argon');?></label></th>
<td>
<select name="argon_toolbar_border">
<?php $argon_toolbar_border = get_option('argon_toolbar_border', 'false'); ?>
<option value="false" <?php if ($argon_toolbar_border=='false'){echo 'selected';} ?>><?php _e('鍏抽棴', 'argon');?></option>
<option value="true" <?php if ($argon_toolbar_border=='true'){echo 'selected';} ?>><?php _e('寮€鍚?, 'argon');?></option>
</select>
<p class="description"><?php _e('涓洪《鏍忔坊鍔犲簳閮ㄧ粏杈规銆?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('椤舵爮绱у噾妯″紡', 'argon');?></label></th>
<td>
<select name="argon_toolbar_compact">
<?php $argon_toolbar_compact = get_option('argon_toolbar_compact', 'false'); ?>
<option value="false" <?php if ($argon_toolbar_compact=='false'){echo 'selected';} ?>><?php _e('鍏抽棴', 'argon');?></option>
<option value="true" <?php if ($argon_toolbar_compact=='true'){echo 'selected';} ?>><?php _e('寮€鍚?, 'argon');?></option>
</select>
<p class="description"><?php _e('鍑忓皬椤舵爮鐨勯珮搴︼紝浣块〉闈㈡洿鍔犵揣鍑戙€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('椤舵爮鏍囬灞呬腑', 'argon');?></label></th>
<td>
<select name="argon_toolbar_center">
<?php $argon_toolbar_center = get_option('argon_toolbar_center', 'false'); ?>
<option value="false" <?php if ($argon_toolbar_center=='false'){echo 'selected';} ?>><?php _e('鍏抽棴', 'argon');?></option>
<option value="true" <?php if ($argon_toolbar_center=='true'){echo 'selected';} ?>><?php _e('寮€鍚?, 'argon');?></option>
</select>
<p class="description"><?php _e('灏嗛《鏍忔爣棰?鍥炬爣灞呬腑鏄剧ず锛堟闈㈢锛夈€?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-toolbar-links"><?php _e('鑷畾涔夐摼鎺?, 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('椤舵爮宸︿晶鑷畾涔夐摼鎺?, 'argon');?></label></th>
<td>
<textarea class="large-text" name="argon_toolbar_links_left" rows="3" placeholder="<?php _e('鏂囧瓧|閾炬帴|鍥炬爣(鍙€?', 'argon'); ?>"><?php echo esc_textarea(get_option('argon_toolbar_links_left', '')); ?></textarea>
<p class="description"><?php _e('姣忚涓€涓紝鏍煎紡锛氭枃瀛梶閾炬帴鍦板潃|鍥炬爣绫诲悕銆備緥濡傦細GitHub|https://github.com|fa fa-github', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('椤舵爮鍙充晶鑷畾涔夐摼鎺?, 'argon');?></label></th>
<td>
<textarea class="large-text" name="argon_toolbar_links_right" rows="3" placeholder="<?php _e('鏂囧瓧|閾炬帴|鍥炬爣(鍙€?', 'argon'); ?>"><?php echo esc_textarea(get_option('argon_toolbar_links_right', '')); ?></textarea>
<p class="description"><?php _e('姣忚涓€涓紝鏄剧ず鍦ㄦ悳绱㈡宸︿晶', 'argon');?></p>
</td>
</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><label><?php _e('Banner 鏍囬', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_banner_title" value="<?php echo get_option('argon_banner_title'); ?>"/>
<p class="description"><?php _e('鐣欑┖鍒欐樉绀哄崥瀹㈠悕绉?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('Banner 鍓爣棰?, 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_banner_subtitle" value="<?php echo get_option('argon_banner_subtitle'); ?>"/>
<p class="description"><?php _e('鏄剧ず鍦?Banner 鏍囬涓嬶紝鐣欑┖鍒欎笉鏄剧ず', 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-banner-appearance"><?php _e('Banner 澶栬', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('Banner 鏄剧ず鐘舵€?, 'argon');?></label></th>
<td>
<select name="argon_banner_size">
<?php $argon_banner_size = get_option('argon_banner_size', 'full'); ?>
<option value="full" <?php if ($argon_banner_size=='full'){echo 'selected';} ?>><?php _e('瀹屾暣', 'argon');?></option>
<option value="mini" <?php if ($argon_banner_size=='mini'){echo 'selected';} ?>><?php _e('杩蜂綘', 'argon');?></option>
<option value="fullscreen" <?php if ($argon_banner_size=='fullscreen'){echo 'selected';} ?>><?php _e('鍏ㄥ睆', 'argon');?></option>
<option value="hide" <?php if ($argon_banner_size=='hide'){echo 'selected';} ?>><?php _e('闅愯棌', 'argon');?></option>
</select>
<p class="description"><?php _e('瀹屾暣: Banner 楂樺害鍗犵敤鍗婂睆', 'argon');?><br/><?php _e('杩蜂綘: 鍑忓皬 Banner 鐨勫唴杈硅窛', 'argon');?><br/><?php _e('鍏ㄥ睆: Banner 鍗犵敤鍏ㄥ睆浣滀负灏侀潰锛堜粎鍦ㄩ椤电敓鏁堬級', 'argon');?><br/><?php _e('闅愯棌: 瀹屽叏闅愯棌 Banner', 'argon');?><br/></p>
</td>
</tr>
<tr>
<th><label><?php _e('Banner 閫忔槑鍖?, 'argon');?></label></th>
<td>
<select name="argon_page_background_banner_style">
<?php $argon_page_background_banner_style = get_option('argon_page_background_banner_style'); ?>
<option value="false" <?php if ($argon_page_background_banner_style=='false'){echo 'selected';} ?>><?php _e('鍏抽棴', 'argon');?></option>
<option value="transparent" <?php if ($argon_page_background_banner_style=='transparent' || ($argon_page_background_banner_style!='' && $argon_page_background_banner_style!='false')){echo 'selected';} ?>><?php _e('寮€鍚?, 'argon');?></option>
</select>
<div style="margin-top: 15px;margin-bottom: 15px;">
<label>
<?php $argon_show_toolbar_mask = get_option('argon_show_toolbar_mask');?>
<input type="checkbox" name="argon_show_toolbar_mask" value="true" <?php if ($argon_show_toolbar_mask=='true'){echo 'checked';}?>/> <?php _e('鍦ㄩ《鏍忔坊鍔犳祬鑹查伄缃╋紝Banner 鏍囬娣诲姞闃村奖锛堝綋鑳屾櫙杩囦寒褰卞搷鏂囧瓧闃呰鏃跺嬀閫夛級', 'argon');?>
</label>
</div>
<p class="description"><?php _e('Banner 閫忔槑鍖栧彲浠ヤ娇鍗氬鑳屾櫙娌夋蹈銆傚缓璁湪璁剧疆鑳屾櫙鏃跺紑鍚閫夐」銆傝閫夐」浠呬細鍦ㄨ缃〉闈㈣儗鏅椂鐢熸晥銆?, 'argon');?><br/><?php _e('寮€鍚悗锛孊anner 鑳屾櫙鍥惧拰娓愬彉鑳屾櫙閫夐」灏嗗け鏁堛€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('Banner 鑳屾櫙鍥?(鍦板潃)', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_banner_background_url" value="<?php echo get_option('argon_banner_background_url'); ?>"/>
<p class="description"><?php _e('闇€甯︿笂 http(s) 锛岀暀绌哄垯鏄剧ず榛樿鑳屾櫙', 'argon');?><br/><?php _e('杈撳叆', 'argon');?> <code>--bing--</code> <?php _e('璋冪敤蹇呭簲姣忔棩涓€鍥?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('Banner 娓愬彉鑳屾櫙鏍峰紡', 'argon');?></label></th>
<td>
<select name="argon_banner_background_color_type">
<?php $color_type = get_option('argon_banner_background_color_type'); ?>
<option value="shape-primary" <?php if ($color_type=='shape-primary'){echo 'selected';} ?>><?php _e('鏍峰紡', 'argon');?> 1</option>
<option value="shape-default" <?php if ($color_type=='shape-default'){echo 'selected';} ?>><?php _e('鏍峰紡', 'argon');?> 2</option>
<option value="shape-dark" <?php if ($color_type=='shape-dark'){echo 'selected';} ?>><?php _e('鏍峰紡', 'argon');?> 3</option>
<option value="bg-gradient-success" <?php if ($color_type=='bg-gradient-success'){echo 'selected';} ?>><?php _e('鏍峰紡', 'argon');?> 4</option>
<option value="bg-gradient-info" <?php if ($color_type=='bg-gradient-info'){echo 'selected';} ?>><?php _e('鏍峰紡', 'argon');?> 5</option>
<option value="bg-gradient-warning" <?php if ($color_type=='bg-gradient-warning'){echo 'selected';} ?>><?php _e('鏍峰紡', 'argon');?> 6</option>
<option value="bg-gradient-danger" <?php if ($color_type=='bg-gradient-danger'){echo 'selected';} ?>><?php _e('鏍峰紡', 'argon');?> 7</option>
</select>
<?php $hide_shapes = get_option('argon_banner_background_hide_shapes'); ?>
<label>
<input type="checkbox" name="argon_banner_background_hide_shapes" value="true" <?php if ($hide_shapes=='true'){echo 'checked';}?>/> <?php _e('闅愯棌鑳屾櫙鍗婇€忔槑鍦?, 'argon');?>
</label>
<p class="description"><strong><?php _e('濡傛灉璁剧疆浜嗚儗鏅浘鍒欎笉鐢熸晥', 'argon');?></strong>
<br/><div style="margin-top: 15px;"><?php _e('鏍峰紡棰勮 (鎺ㄨ崘閫夋嫨鍓嶄笁涓牱寮?', 'argon');?></div>
<div style="margin-top: 10px;">
<div class="banner-background-color-type-preview" style="background:linear-gradient(150deg,#281483 15%,#8f6ed5 70%,#d782d9 94%);"><?php _e('鏍峰紡', 'argon');?> 1</div>
<div class="banner-background-color-type-preview" style="background:linear-gradient(150deg,#7795f8 15%,#6772e5 70%,#555abf 94%);"><?php _e('鏍峰紡', 'argon');?> 2</div>
<div class="banner-background-color-type-preview" style="background:linear-gradient(150deg,#32325d 15%,#32325d 70%,#32325d 94%);"><?php _e('鏍峰紡', 'argon');?> 3</div>
<div class="banner-background-color-type-preview" style="background:linear-gradient(87deg,#2dce89 0,#2dcecc 100%);"><?php _e('鏍峰紡', 'argon');?> 4</div>
<div class="banner-background-color-type-preview" style="background:linear-gradient(87deg,#11cdef 0,#1171ef 100%);"><?php _e('鏍峰紡', 'argon');?> 5</div>
<div class="banner-background-color-type-preview" style="background:linear-gradient(87deg,#fb6340 0,#fbb140 100%);"><?php _e('鏍峰紡', 'argon');?> 6</div>
<div class="banner-background-color-type-preview" style="background:linear-gradient(87deg,#f5365c 0,#f56036 100%);"><?php _e('鏍峰紡', 'argon');?> 7</div>
</div>
<style>
div.banner-background-color-type-preview{width:100px;height:50px;line-height:50px;color:#fff;margin-right:0px;font-size:15px;text-align:center;display:inline-block;border-radius:5px;transition:all .3s ease;}
div.banner-background-color-type-preview:hover{transform: scale(1.2);}
</style>
</p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-banner-animation"><?php _e('Banner 鍔ㄧ敾', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('Banner 鏍囬鎵撳瓧鍔ㄧ敾', 'argon');?></label></th>
<td>
<select name="argon_enable_banner_title_typing_effect">
<?php $argon_enable_banner_title_typing_effect = get_option('argon_enable_banner_title_typing_effect'); ?>
<option value="false" <?php if ($argon_enable_banner_title_typing_effect=='false'){echo 'selected';} ?>><?php _e('涓嶅惎鐢?, 'argon');?></option>
<option value="true" <?php if ($argon_enable_banner_title_typing_effect=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
</select>
<p class="description"><?php _e('鍚敤鍚?Banner 鏍囬浼氫互鎵撳瓧鐨勫舰寮忓嚭鐜般€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('Banner 鏍囬鎵撳瓧鍔ㄧ敾鏃堕暱', 'argon');?></label></th>
<td>
<input type="number" name="argon_banner_typing_effect_interval" min="1" max="10000" value="<?php echo (get_option('argon_banner_typing_effect_interval') == '' ? '100' : get_option('argon_banner_typing_effect_interval')); ?>"/> <?php _e('ms/瀛?, 'argon');?>
<p class="description"></p>
</td>
</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><label><?php _e('椤甸潰鑳屾櫙', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_page_background_url" value="<?php echo get_option('argon_page_background_url'); ?>"/>
<p class="description"><?php _e('椤甸潰鑳屾櫙鐨勫湴鍧€锛岄渶甯︿笂 http(s)銆傜暀绌哄垯涓嶈缃〉闈㈣儗鏅€傚鏋滆缃簡鑳屾櫙锛屾帹鑽愬紑鍚?Banner 閫忔槑鍖栥€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('椤甸潰鑳屾櫙锛堝闂存ā寮忔椂锛?, 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_page_background_dark_url" value="<?php echo get_option('argon_page_background_dark_url'); ?>"/>
<p class="description"><?php _e('澶滈棿妯″紡鏃堕〉闈㈣儗鏅殑鍦板潃锛岄渶甯︿笂 http(s)銆傝缃悗鏃ラ棿妯″紡鍜屽闂存ā寮忎細浣跨敤涓嶅悓鐨勮儗鏅€傜暀绌哄垯璺熼殢鏃ラ棿妯″紡鑳屾櫙銆傝閫夐」浠呭湪璁剧疆浜嗘棩闂存ā寮忚儗鏅椂鐢熸晥銆?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-transparency"><?php _e('閫忔槑搴︿笌姣涚幓鐠?, 'argon');?></h3></th></tr>
<tr>
<td colspan="2" style="padding: 20px 10px;">
<div style="display: flex; gap: 40px; align-items: flex-start;">
<!-- 宸︿晶锛氳缃」 -->
<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>
<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;">
<span id="argon_page_bg_opacity_value" style="min-width: 50px; text-align: center; font-family: monospace; font-size: 13px; background: #f0f0f1; padding: 4px 8px; border-radius: 4px;"><?php echo (get_option('argon_page_background_opacity') == '' ? '1.00' : number_format(floatval(get_option('argon_page_background_opacity')), 2)); ?></span>
</div>
<p style="margin: 6px 0 0; font-size: 12px; color: #646970;"><?php _e('鎺у埗椤甸潰鑳屾櫙鍥剧墖鐨勪笉閫忔槑搴?, 'argon');?></p>
</div>
<!-- 鍗$墖閫忔槑搴?-->
<div style="margin-bottom: 20px;">
<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;">
<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;">
<span id="argon_post_bg_opacity_value" style="min-width: 50px; text-align: center; font-family: monospace; font-size: 13px; background: #f0f0f1; padding: 4px 8px; border-radius: 4px;"><?php echo (get_option('argon_post_background_opacity') == '' ? '0.70' : number_format(floatval(get_option('argon_post_background_opacity')), 2)); ?></span>
</div>
<p style="margin: 6px 0 0; font-size: 12px; color: #646970;"><?php _e('鎺у埗鏂囩珷銆佽瘎璁虹瓑鍗$墖鐨勮儗鏅€忔槑搴︼紝鎺ㄨ崘 0.7', 'argon');?></p>
</div>
<!-- 姣涚幓鐠冩ā绯?-->
<div style="margin-bottom: 20px;">
<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;">
<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;">
<span id="argon_card_blur_value" style="min-width: 50px; text-align: center; font-family: monospace; font-size: 13px; background: #f0f0f1; padding: 4px 8px; border-radius: 4px;"><?php echo (get_option('argon_card_blur', '20')); ?>px</span>
</div>
<p style="margin: 6px 0 0; font-size: 12px; color: #646970;"><?php _e('涓哄崱鐗囨坊鍔犳瘺鐜荤拑妯$硦鏁堟灉锛屾帹鑽?20px', 'argon');?></p>
</div>
<!-- 姣涚幓鐠冮ケ鍜屽害 -->
<div style="margin-bottom: 10px;">
<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;">
<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;">
<span id="argon_card_saturate_value" style="min-width: 50px; text-align: center; font-family: monospace; font-size: 13px; background: #f0f0f1; padding: 4px 8px; border-radius: 4px;"><?php echo (get_option('argon_card_saturate', '180')); ?>%</span>
</div>
<p style="margin: 6px 0 0; font-size: 12px; color: #646970;"><?php _e('姣涚幓鐠冭儗鏅殑鑹插僵楗卞拰搴︼紝鎺ㄨ崘 180%', 'argon');?></p>
</div>
</div>
<!-- 鍙充晶锛氬疄鏃堕瑙?-->
<div style="flex-shrink: 0;">
<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'); ?>
<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;">
<?php if (!empty($page_bg_url)) { ?>
<img id="effect_preview_bg" src="<?php echo esc_url($page_bg_url); ?>" style="position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: <?php echo get_option('argon_page_background_opacity', '1'); ?>;">
<?php } ?>
<div style="position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;">
<div id="blur_preview_card" style="width: 140px; height: 85px; background: rgba(255,255,255,<?php echo get_option('argon_post_background_opacity', '0.7'); ?>); border-radius: 10px; backdrop-filter: blur(<?php echo get_option('argon_card_blur', '20'); ?>px) saturate(<?php echo get_option('argon_card_saturate', '180'); ?>%); -webkit-backdrop-filter: blur(<?php echo get_option('argon_card_blur', '20'); ?>px) saturate(<?php echo get_option('argon_card_saturate', '180'); ?>%); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0,0,0,0.08); border: 1px solid rgba(255,255,255,0.4);">
<span style="font-size: 12px; font-weight: 500; color: #333;"><?php _e('鍗$墖鏁堟灉', 'argon'); ?></span>
<span id="blur_preview_info" style="font-size: 10px; color: #666; margin-top: 4px;"></span>
</div>
</div>
</div>
<p style="margin: 8px 0 0; font-size: 11px; color: #888; text-align: center;">
<?php if (empty($page_bg_url)) { _e('璇峰厛璁剧疆椤甸潰鑳屾櫙', 'argon'); } else { _e('鎷栧姩婊戝潡鏌ョ湅鏁堟灉', 'argon'); } ?>
</p>
</div>
</div>
<script>
(function(){
var pageBgSlider = document.getElementById('argon_page_bg_opacity_slider');
var pageBgValue = document.getElementById('argon_page_bg_opacity_value');
var postBgSlider = document.getElementById('argon_post_bg_opacity_slider');
var postBgValue = document.getElementById('argon_post_bg_opacity_value');
var blurSlider = document.getElementById('argon_card_blur_slider');
var blurValue = document.getElementById('argon_card_blur_value');
var saturateSlider = document.getElementById('argon_card_saturate_slider');
var saturateValue = document.getElementById('argon_card_saturate_value');
var previewBg = document.getElementById('effect_preview_bg');
var previewCard = document.getElementById('blur_preview_card');
var previewInfo = document.getElementById('blur_preview_info');
function updatePreview() {
var pageBgOpacity = pageBgSlider ? pageBgSlider.value : 1;
var postBgOpacity = postBgSlider ? postBgSlider.value : 0.7;
var blur = blurSlider ? blurSlider.value : 20;
var saturate = saturateSlider ? saturateSlider.value : 180;
if (previewBg) {
previewBg.style.opacity = pageBgOpacity;
}
if (previewCard) {
previewCard.style.background = 'rgba(255,255,255,' + postBgOpacity + ')';
previewCard.style.backdropFilter = 'blur(' + blur + 'px) saturate(' + saturate + '%)';
previewCard.style.webkitBackdropFilter = 'blur(' + blur + 'px) saturate(' + saturate + '%)';
}
if (previewInfo) {
previewInfo.textContent = '<?php _e("閫忔槑搴?, "argon"); ?> ' + parseFloat(postBgOpacity).toFixed(2) + ' / <?php _e("妯$硦", "argon"); ?> ' + blur + 'px';
}
}
if (pageBgSlider) {
pageBgSlider.addEventListener('input', function() {
pageBgValue.textContent = parseFloat(this.value).toFixed(2);
updatePreview();
});
}
if (postBgSlider) {
postBgSlider.addEventListener('input', function() {
postBgValue.textContent = parseFloat(this.value).toFixed(2);
updatePreview();
});
}
if (blurSlider) {
blurSlider.addEventListener('input', function() {
blurValue.textContent = this.value + 'px';
updatePreview();
});
}
if (saturateSlider) {
saturateSlider.addEventListener('input', function() {
saturateValue.textContent = this.value + '%';
updatePreview();
});
}
updatePreview();
})();
</script>
</td>
</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><label><?php _e('宸︿晶鏍忔爣棰?, 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_sidebar_banner_title" value="<?php echo get_option('argon_sidebar_banner_title'); ?>"/>
<p class="description"><?php _e('鐣欑┖鍒欐樉绀哄崥瀹㈠悕绉?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('宸︿晶鏍忓瓙鏍囬锛堟牸瑷€锛?, 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_sidebar_banner_subtitle" value="<?php echo get_option('argon_sidebar_banner_subtitle'); ?>"/>
<p class="description"><?php _e('鐣欑┖鍒欎笉鏄剧ず', 'argon');?><br/><?php _e('杈撳叆', 'argon');?> <code>--hitokoto--</code> <?php _e('璋冪敤涓€瑷€ API', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('宸︿晶鏍忎綔鑰呭悕绉?, 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_sidebar_auther_name" value="<?php echo get_option('argon_sidebar_auther_name'); ?>"/>
<p class="description"><?php _e('鐣欑┖鍒欐樉绀哄崥瀹㈠悕', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('宸︿晶鏍忎綔鑰呭ご鍍忓湴鍧€', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_sidebar_auther_image" value="<?php echo get_option('argon_sidebar_auther_image'); ?>"/>
<p class="description"><?php _e('闇€甯︿笂 http(s) 寮€澶?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('宸︿晶鏍忎綔鑰呯畝浠?, 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_sidebar_author_description" value="<?php echo get_option('argon_sidebar_author_description'); ?>"/>
<p class="description"><?php _e('鐣欑┖鍒欎笉鏄剧ず', 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-sidebar-features"><?php _e('鎵╁睍鍔熻兘', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鏄剧ず TODO 鍒楄〃', 'argon');?></label></th>
<td>
<select name="argon_show_todo_list">
<?php $argon_show_todo_list = get_option('argon_show_todo_list', 'true'); ?>
<option value="true" <?php if ($argon_show_todo_list=='true'){echo 'selected';} ?>><?php _e('鏄剧ず', 'argon');?></option>
<option value="false" <?php if ($argon_show_todo_list=='false'){echo 'selected';} ?>><?php _e('闅愯棌', 'argon');?></option>
</select>
<p class="description"><?php _e('鍦ㄥ乏渚ф爮鏄剧ず浣滆€呯殑 TODO 鍒楄〃銆備綔鑰呯櫥褰曞悗鍙坊鍔犲拰瀹屾垚 TODO锛岃瀹㈠彲浠ョ偣鍑诲偓淇冧綔鑰呭畬鎴愩€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏄剧ず澶氶偦鍥借繛鑳?, 'argon');?></label></th>
<td>
<select name="argon_show_duolingo_streak">
<?php $argon_show_duolingo_streak = get_option('argon_show_duolingo_streak', 'false'); ?>
<option value="false" <?php if ($argon_show_duolingo_streak=='false'){echo 'selected';} ?>><?php _e('闅愯棌', 'argon');?></option>
<option value="true" <?php if ($argon_show_duolingo_streak=='true'){echo 'selected';} ?>><?php _e('鏄剧ず', 'argon');?></option>
</select>
<p class="description"><?php _e('鍦ㄤ綔鑰呭悕绉版梺鏄剧ず澶氶偦鍥借繛鑳滃ぉ鏁板窘绔?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('澶氶偦鍥界敤鎴峰悕', 'argon');?></label></th>
<td>
<input name="argon_duolingo_username" type="text" class="regular-text" value="<?php echo get_option('argon_duolingo_username', ''); ?>" placeholder="<?php _e('杈撳叆澶氶偦鍥界敤鎴峰悕', 'argon');?>">
<p class="description"><?php _e('濉啓浣犵殑澶氶偦鍥界敤鎴峰悕浠ヨ嚜鍔ㄨ幏鍙栬繛鑳滃ぉ鏁帮紙闇€瑕佸湪澶氶偦鍥介殣绉佽缃腑寮€鍚叕寮€璧勬枡锛?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-announcement"><?php _e('鍗氬鍏憡', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鍏憡鍐呭', 'argon');?></label></th>
<td>
<textarea type="text" rows="5" cols="50" name="argon_sidebar_announcement"><?php echo htmlspecialchars(get_option('argon_sidebar_announcement')); ?></textarea>
<p class="description"><?php _e('鏄剧ず鍦ㄥ乏渚ф爮椤堕儴锛岀暀绌哄垯涓嶆樉绀猴紝鏀寔 HTML 鏍囩', 'argon');?></p>
</td>
</tr>
<!-- ========== 8. 娴姩鎸夐挳 ========== -->
<tr><th class="subtitle"><h2 id="section-fab"><?php _e('娴姩鎸夐挳', 'argon');?></h2></th></tr>
<tr><th class="subtitle"><h3 id="subsection-fab"><?php _e('娴姩鎿嶄綔鎸夐挳', 'argon');?></h3></th></tr>
<tr><th class="subtitle"><p class="description"><?php _e('娴姩鎿嶄綔鎸夐挳浣嶄簬椤甸潰鍙充笅瑙掞紙鎴栧乏涓嬭锛?, 'argon');?></p></th></tr>
<tr>
<th><label><?php _e('鏄剧ず璁剧疆鎸夐挳', 'argon');?></label></th>
<td>
<select name="argon_fab_show_settings_button">
<?php $argon_fab_show_settings_button = get_option('argon_fab_show_settings_button'); ?>
<option value="true" <?php if ($argon_fab_show_settings_button=='true'){echo 'selected';} ?>><?php _e('鏄剧ず', 'argon');?></option>
<option value="false" <?php if ($argon_fab_show_settings_button=='false'){echo 'selected';} ?>><?php _e('涓嶆樉绀?, 'argon');?></option>
</select>
<p class="description"><?php _e('鏄惁鍦ㄦ诞鍔ㄦ搷浣滄寜閽爮涓樉绀鸿缃寜閽€傜偣鍑昏缃寜閽彲浠ュ敜鍑鸿缃彍鍗曚慨鏀瑰闂存ā寮?瀛椾綋/婊ら暅绛夊瑙傞€夐」銆?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏄剧ず澶滈棿妯″紡鍒囨崲鎸夐挳', 'argon');?></label></th>
<td>
<select name="argon_fab_show_darkmode_button">
<?php $argon_fab_show_darkmode_button = get_option('argon_fab_show_darkmode_button'); ?>
<option value="false" <?php if ($argon_fab_show_darkmode_button=='false'){echo 'selected';} ?>><?php _e('涓嶆樉绀?, 'argon');?></option>
<option value="true" <?php if ($argon_fab_show_darkmode_button=='true'){echo 'selected';} ?>><?php _e('鏄剧ず', 'argon');?></option>
</select>
<p class="description"><?php _e('濡傛灉寮€鍚簡璁剧疆鎸夐挳鏄剧ず锛屽缓璁叧闂閫夐」銆傦紙澶滈棿妯″紡閫夐」鍦ㄨ缃彍鍗曚腑宸茬粡瀛樺湪锛?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏄剧ず璺宠浆鍒拌瘎璁烘寜閽?, 'argon');?></label></th>
<td>
<select name="argon_fab_show_gotocomment_button">
<?php $argon_fab_show_gotocomment_button = get_option('argon_fab_show_gotocomment_button'); ?>
<option value="false" <?php if ($argon_fab_show_gotocomment_button=='false'){echo 'selected';} ?>><?php _e('涓嶆樉绀?, 'argon');?></option>
<option value="true" <?php if ($argon_fab_show_gotocomment_button=='true'){echo 'selected';} ?>><?php _e('鏄剧ず', 'argon');?></option>
</select>
<p class="description"><?php _e('浠呭湪鍏佽璇勮鐨勬枃绔犱腑鏄剧ず', 'argon');?></p>
</td>
</tr>
<!-- ========== 9. 椤佃剼璁剧疆 ========== -->
<tr><th class="subtitle"><h2 id="section-footer"><?php _e('椤佃剼璁剧疆', 'argon');?></h2></th></tr>
<tr>
<th><label><?php _e('褰掓。椤甸潰閾炬帴', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_archives_timeline_url" value="<?php echo get_option('argon_archives_timeline_url'); ?>"/>
<p class="description"><?php _e('褰掓。椤甸潰鐨?URL銆傜偣鍑诲乏渚ф爮 "鍗氬姒傝" 涓殑 "鍗氭枃鎬绘暟" 涓€鏍忔椂鍙烦杞埌璇ュ湴鍧€銆?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('椤佃剼鍐呭', 'argon');?></label></th>
<td>
<textarea type="text" rows="15" cols="100" name="argon_footer_html"><?php echo htmlspecialchars(get_option('argon_footer_html')); ?></textarea>
<p class="description"><?php _e('HTML , 鏀寔 script 绛夋爣绛?, 'argon');?></p>
</td>
</tr>
<!-- ========== 10. SEO涓庢€ц兘 ========== -->
<tr><th class="subtitle"><h2 id="section-seo-performance"><?php _e('SEO涓庢€ц兘', 'argon');?></h2></th></tr>
<tr><th class="subtitle"><h3 id="subsection-seo">SEO</h3></th></tr>
<tr>
<th><label><?php _e('缃戠珯鎻忚堪 (Description Meta 鏍囩)', 'argon');?></label></th>
<td>
<textarea type="text" rows="5" cols="100" name="argon_seo_description"><?php echo htmlspecialchars(get_option('argon_seo_description')); ?></textarea>
<p class="description"><?php _e('璁剧疆閽堝鎼滅储寮曟搸鐨?Description Meta 鏍囩鍐呭銆?, 'argon');?><br/><?php _e('鍦ㄦ枃绔犱腑锛孉rgon 浼氳嚜鍔ㄦ牴鎹枃绔犲唴瀹圭敓鎴愭弿杩般€傚湪鍏朵粬椤甸潰涓紝Argon 灏嗕娇鐢ㄨ繖閲岃缃殑鍐呭銆傚涓嶅锛孉rgon 灏嗕笉浼氬湪鍏朵粬椤甸潰杈撳嚭 Description Meta 鏍囩銆?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鎼滅储寮曟搸鍏抽敭璇嶏紙Keywords Meta 鏍囩锛?, 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_seo_keywords" value="<?php echo get_option('argon_seo_keywords'); ?>"/>
<p class="description"><?php _e('璁剧疆閽堝鎼滅储寮曟搸浣跨敤鐨勫叧閿瘝锛圞eywords Meta 鏍囩鍐呭锛夈€傜敤鑻辨枃閫楀彿闅斿紑銆備笉璁剧疆鍒欎笉杈撳嚭璇?Meta 鏍囩銆?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-cdn"><?php _e('CDN 鍔犻€?, 'argon');?></h3></th></tr>
<tr>
<th><label>CDN</label></th>
<td>
<select name="argon_assets_path">
<?php $argon_assets_path = get_option('argon_assets_path'); ?>
<option value="default" <?php if ($argon_assets_path=='default'){echo 'selected';} ?>><?php _e('涓嶄娇鐢?, 'argon');?></option>
<option value="jsdelivr" <?php if ($argon_assets_path=='jsdelivr'){echo 'selected';} ?>>Jsdelivr</option>
<option value="fastgit" <?php if ($argon_assets_path=='fastgit'){echo 'selected';} ?>>Fastgit</option>
<option value="sourcegcdn" <?php if ($argon_assets_path=='sourcegcdn'){echo 'selected';} ?>>Source Global CDN</option>
<option value="jsdelivr_gcore" <?php if ($argon_assets_path=='jsdelivr_gcore'){echo 'selected';} ?>>Jsdelivr (gcore)</option>
<option value="jsdelivr_fastly" <?php if ($argon_assets_path=='jsdelivr_fastly'){echo 'selected';} ?>>Jsdelivr (fastly)</option>
<option value="jsdelivr_cf" <?php if ($argon_assets_path=='jsdelivr_cf'){echo 'selected';} ?>>Jsdelivr (cf)</option>
<option value="custom" <?php if ($argon_assets_path=='custom'){echo 'selected';} ?>><?php _e('鑷畾涔?..', 'argon');?></option>
</select>
<input type="text" class="regular-text" name="argon_custom_assets_path" placeholder="https://" value="<?php echo get_option('argon_custom_assets_path', ''); ?>" autocomplete="off">
<p class="description"><?php _e('閫夋嫨涓婚璧勬簮鏂囦欢鐨勫紩鐢ㄥ湴鍧€銆備娇鐢?CDN 鍙互鍔犻€熻祫婧愭枃浠剁殑璁块棶骞跺噺灏戞湇鍔″櫒鍘嬪姏銆?, 'argon');?></p>
<p class="description custom-assets-path-desctiption"><?php _e('鍦ㄨ嚜瀹氫箟璺緞涓娇鐢?<code>%theme_version%</code> 鏉ヨ〃绀轰富棰樼増鏈彿銆?, 'argon');?></p>
</td>
<script>
$("select[name='argon_assets_path']").change(function(){
if ($(this).val() == 'custom') {
$("input[name='argon_custom_assets_path']").css('display', '');
$(".custom-assets-path-desctiption").css('display', '');
} else {
$("input[name='argon_custom_assets_path']").css('display', 'none');
$(".custom-assets-path-desctiption").css('display', 'none');
}
}).change();
</script>
</tr>
<tr>
<th><label><?php _e('WordPress 瀹夎鐩綍', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_wp_path" value="<?php echo get_option('argon_wp_path', '/'); ?>"/>
<p class="description"><?php _e('濡傛灉 WordPress 瀹夎鍦ㄥ瓙鐩綍涓紝璇峰湪姝ゅ~鍐欏瓙鐩綍鍦板潃锛堜緥濡?, 'argon');?> <code>/blog/</code><?php _e('锛夛紝娉ㄦ剰鍓嶅悗鍚勬湁涓€涓枩鏉犮€傞粯璁や负', 'argon');?> <code>/</code> <?php _e('銆?, 'argon');?><br/><?php _e('濡傛灉涓嶆竻妤氳閫夐」鐨勭敤澶勶紝璇蜂繚鎸侀粯璁ゃ€?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-date-format"><?php _e('鏃ユ湡鏍煎紡', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鏃ユ湡鏍煎紡', 'argon');?></label></th>
<td>
<select name="argon_dateformat">
<?php $argon_dateformat = get_option('argon_dateformat'); ?>
<option value="YMD" <?php if ($argon_dateformat=='YMD'){echo 'selected';} ?>>Y-M-D</option>
<option value="DMY" <?php if ($argon_dateformat=='DMY'){echo 'selected';} ?>>D-M-Y</option>
<option value="MDY" <?php if ($argon_dateformat=='MDY'){echo 'selected';} ?>>M-D-Y</option>
</select>
<p class="description"></p>
</td>
</tr>
<!-- ========== 11. 鏂囩珷鏄剧ず ========== -->
<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><label><?php _e('绗竴琛?, 'argon');?></label></th>
<style>
.article-meta-container {
margin-top: 10px;
margin-bottom: 15px;
width: calc(100% - 250px);
}
@media screen and (max-width:960px){
.article-meta-container {
width: 100%;
}
}
#article_meta_active, #article_meta_inactive {
background: rgba(0, 0, 0, .05);
padding: 10px 15px;
margin-top: 10px;
border-radius: 5px;
padding-bottom: 0;
min-height: 48px;
box-sizing: border-box;
}
.article-meta-item {
background: #fafafa;
width: max-content !important;
height: max-content !important;
border-radius: 100px;
padding: 5px 15px;
cursor: move;
display: inline-block;
margin-right: 8px;
margin-bottom: 10px;
}
</style>
<td>
<input type="text" class="regular-text" name="argon_article_meta" value="<?php echo get_option('argon_article_meta', 'time|views|comments|categories'); ?>" style="display: none;"/>
<?php _e('鎷栧姩鏉ヨ嚜瀹氫箟鏂囩珷 Meta 淇℃伅鐨勬樉绀哄拰椤哄簭', 'argon');?>
<div class="article-meta-container">
<?php _e('鏄剧ず', 'argon');?>
<div id="article_meta_active"></div>
</div>
<div class="article-meta-container">
<?php _e('涓嶆樉绀?, 'argon');?>
<div id="article_meta_inactive">
<div class="article-meta-item" meta-name="time"><?php _e('鍙戝竷鏃堕棿', 'argon');?></div>
<div class="article-meta-item" meta-name="edittime"><?php _e('淇敼鏃堕棿', 'argon');?></div>
<div class="article-meta-item" meta-name="views"><?php _e('娴忚閲?, 'argon');?></div>
<div class="article-meta-item" meta-name="comments"><?php _e('璇勮鏁?, 'argon');?></div>
<div class="article-meta-item" meta-name="categories"><?php _e('鎵€灞炲垎绫?, 'argon');?></div>
<div class="article-meta-item" meta-name="author"><?php _e('浣滆€?, 'argon');?></div>
</div>
</div>
</td>
<script>
!function(){
let articleMeta = $("input[name='argon_article_meta']").val().split("|");
for (metaName of articleMeta){
let itemDiv = $("#article_meta_inactive .article-meta-item[meta-name='"+ metaName + "']");
$("#article_meta_active").append(itemDiv.prop("outerHTML"));
itemDiv.remove();
}
}();
dragula(
[document.querySelector('#article_meta_active'), document.querySelector('#article_meta_inactive')],
{
direction: 'vertical'
}
).on('dragend', function(){
let articleMeta = "";
$("#article_meta_active .article-meta-item").each(function(index, item) {
if (index != 0){
articleMeta += "|";
}
articleMeta += item.getAttribute("meta-name");
});
$("input[name='argon_article_meta']").val(articleMeta);
});
</script>
</tr>
<tr><th class="subtitle"><h4><?php _e('绗簩琛?, 'argon');?></h4></th></tr>
<tr>
<th><label><?php _e('鏄剧ず瀛楁暟鍜岄璁¢槄璇绘椂闂?, 'argon');?></label></th>
<td>
<select name="argon_show_readingtime">
<?php $argon_show_readingtime = get_option('argon_show_readingtime'); ?>
<option value="true" <?php if ($argon_show_readingtime=='true'){echo 'selected';} ?>><?php _e('鏄剧ず', 'argon');?></option>
<option value="false" <?php if ($argon_show_readingtime=='false'){echo 'selected';} ?>><?php _e('涓嶆樉绀?, 'argon');?></option>
</select>
</td>
</tr>
<tr>
<th><label><?php _e('姣忓垎閽熼槄璇诲瓧鏁帮紙涓枃锛?, 'argon');?></label></th>
<td>
<input type="number" name="argon_reading_speed" min="1" max="5000" value="<?php echo (get_option('argon_reading_speed') == '' ? '300' : get_option('argon_reading_speed')); ?>"/>
<?php _e('瀛?鍒嗛挓', 'argon');?>
<p class="description"></p>
</td>
</tr>
<tr>
<th><label><?php _e('姣忓垎閽熼槄璇诲崟璇嶆暟锛堣嫳鏂囷級', 'argon');?></label></th>
<td>
<input type="number" name="argon_reading_speed_en" min="1" max="5000" value="<?php echo (get_option('argon_reading_speed_en') == '' ? '160' : get_option('argon_reading_speed_en')); ?>"/>
<?php _e('鍗曡瘝/鍒嗛挓', 'argon');?>
</td>
</tr>
<tr>
<th><label><?php _e('姣忓垎閽熼槄璇讳唬鐮佽鏁?, 'argon');?></label></th>
<td>
<input type="number" name="argon_reading_speed_code" min="1" max="5000" value="<?php echo (get_option('argon_reading_speed_code') == '' ? '20' : get_option('argon_reading_speed_code')); ?>"/>
<?php _e('琛?鍒嗛挓', 'argon');?>
<p class="description"><?php _e('棰勮闃呰鏃堕棿鐢辨瘡鍒嗛挓闃呰瀛楁暟璁$畻', 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-thumbnail"><?php _e('鏂囩珷澶村浘', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鏂囩珷澶村浘鐨勪綅缃?, 'argon');?></label></th>
<td>
<select name="argon_show_thumbnail_in_banner_in_content_page">
<?php $argon_show_thumbnail_in_banner_in_content_page = get_option('argon_show_thumbnail_in_banner_in_content_page'); ?>
<option value="false" <?php if ($argon_show_thumbnail_in_banner_in_content_page=='false'){echo 'selected';} ?>><?php _e('鏂囩珷鍗$墖椤剁', 'argon');?></option>
<option value="true" <?php if ($argon_show_thumbnail_in_banner_in_content_page=='true'){echo 'selected';} ?>><?php _e('Banner (椤堕儴鑳屾櫙)', 'argon');?></option>
</select>
<p class="description"><?php _e('闃呰鐣岄潰涓枃绔犲ご鍥剧殑浣嶇疆', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('榛樿浣跨敤鏂囩珷涓涓€寮犲浘浣滀负澶村浘', 'argon');?></label></th>
<td>
<select name="argon_first_image_as_thumbnail_by_default">
<?php $argon_first_image_as_thumbnail_by_default = get_option('argon_first_image_as_thumbnail_by_default'); ?>
<option value="false" <?php if ($argon_first_image_as_thumbnail_by_default=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
<option value="true" <?php if ($argon_first_image_as_thumbnail_by_default=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
</select>
<p class="description"><?php _e('涔熷彲浠ラ拡瀵规瘡绡囨枃绔犲崟鐙缃?, 'argon');?></p>
</td>
</tr>
<!-- ========== 12. 鏂囩珷鍔熻兘 ========== -->
<tr><th class="subtitle"><h2 id="section-post-features"><?php _e('鏂囩珷鍔熻兘', 'argon');?></h2></th></tr>
<tr><th class="subtitle"><h3 id="subsection-ai-summary"><?php _e('AI 鏂囩珷鎽樿', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鍚敤 AI 鏂囩珷鎽樿', 'argon');?></label></th>
<td>
<select name="argon_ai_summary_enable">
<?php $argon_ai_summary_enable = get_option('argon_ai_summary_enable', 'false'); ?>
<option value="true" <?php if ($argon_ai_summary_enable=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="false" <?php if ($argon_ai_summary_enable=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗锛屾枃绔犲紑澶翠細鏄剧ず AI 鐢熸垚鐨勬憳瑕併€傛瘡绡囨枃绔犲彧鐢熸垚涓€娆★紝缁撴灉浼氱紦瀛樺埌鏈嶅姟鍣ㄣ€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('AI 鏈嶅姟鍟?, 'argon');?></label></th>
<td>
<select name="argon_ai_summary_provider">
<?php $argon_ai_summary_provider = get_option('argon_ai_summary_provider', 'openai'); ?>
<option value="openai" <?php if ($argon_ai_summary_provider=='openai'){echo 'selected';} ?>>OpenAI (ChatGPT)</option>
<option value="anthropic" <?php if ($argon_ai_summary_provider=='anthropic'){echo 'selected';} ?>>Anthropic (Claude)</option>
<option value="deepseek" <?php if ($argon_ai_summary_provider=='deepseek'){echo 'selected';} ?>>DeepSeek</option>
<option value="qianwen" <?php if ($argon_ai_summary_provider=='qianwen'){echo 'selected';} ?>><?php _e('閫氫箟鍗冮棶', 'argon');?></option>
<option value="wenxin" <?php if ($argon_ai_summary_provider=='wenxin'){echo 'selected';} ?>><?php _e('鏂囧績涓€瑷€', 'argon');?></option>
<option value="doubao" <?php if ($argon_ai_summary_provider=='doubao'){echo 'selected';} ?>><?php _e('璞嗗寘 (鐏北寮曟搸)', 'argon');?></option>
<option value="kimi" <?php if ($argon_ai_summary_provider=='kimi'){echo 'selected';} ?>>Kimi (Moonshot)</option>
<option value="zhipu" <?php if ($argon_ai_summary_provider=='zhipu'){echo 'selected';} ?>><?php _e('鏅鸿氨 AI (GLM)', 'argon');?></option>
<option value="siliconflow" <?php if ($argon_ai_summary_provider=='siliconflow'){echo 'selected';} ?>><?php _e('纭呭熀娴佸姩 (SiliconFlow)', 'argon');?></option>
</select>
<p class="description"><?php _e('閫夋嫨 AI 鏈嶅姟鎻愪緵鍟?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('API 瀵嗛挜', 'argon');?></label></th>
<td>
<input type="password" class="regular-text" name="argon_ai_summary_api_key" value="<?php echo get_option('argon_ai_summary_api_key', ''); ?>" placeholder="sk-..."/>
<p class="description"><?php _e('濉啓瀵瑰簲鏈嶅姟鍟嗙殑 API Key', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('API 绔偣 (鍙€?', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_ai_summary_api_endpoint" value="<?php echo get_option('argon_ai_summary_api_endpoint', ''); ?>" placeholder="<?php _e('鐣欑┖浣跨敤榛樿绔偣', 'argon');?>"/>
<p class="description"><?php _e('鑷畾涔?API 绔偣鍦板潃锛岀暀绌哄垯浣跨敤瀹樻柟榛樿鍦板潃銆傞€傜敤浜庝娇鐢ㄤ唬鐞嗘垨绗笁鏂瑰吋瀹规帴鍙c€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('AI 妯″瀷', 'argon');?></label></th>
<td>
<select name="argon_ai_summary_model" id="argon_ai_summary_model" class="regular-text">
<option value=""><?php _e('浣跨敤榛樿妯″瀷', 'argon');?></option>
<?php
$current_model = get_option('argon_ai_summary_model', '');
if (!empty($current_model)) {
echo '<option value="' . esc_attr($current_model) . '" selected>' . esc_html($current_model) . '</option>';
}
?>
</select>
<button type="button" class="button" id="argon_refresh_models" style="margin-left: 10px;">
<span class="dashicons dashicons-update" style="margin-top: 3px;"></span> <?php _e('鍒锋柊妯″瀷鍒楄〃', 'argon');?>
</button>
<span id="argon_model_loading" style="display:none;margin-left:10px;color:#666;">
<span class="dashicons dashicons-update spin" style="margin-top:3px;"></span> <?php _e('鍔犺浇涓?..', 'argon');?>
</span>
<p class="description">
<?php _e('閫夋嫨瑕佷娇鐢ㄧ殑妯″瀷銆傜偣鍑?鍒锋柊妯″瀷鍒楄〃"鍙粠鏈嶅姟鍟嗚幏鍙栨渶鏂板彲鐢ㄦā鍨嬨€?, 'argon');?><br/>
<?php _e('榛樿妯″瀷: OpenAI (gpt-4o-mini) | Claude (claude-3-5-haiku-20241022) | DeepSeek (deepseek-chat)', 'argon');?><br/>
<?php _e('閫氫箟鍗冮棶 (qwen-turbo) | 鏂囧績涓€瑷€ (ernie-4.0-turbo-8k) | 璞嗗寘 (doubao-pro-32k)', 'argon');?><br/>
<?php _e('Kimi (moonshot-v1-8k) | 鏅鸿氨 (glm-4-flash) | 纭呭熀娴佸姩 (Qwen/Qwen2.5-7B-Instruct)', 'argon');?>
</p>
<style>
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.dashicons.spin {
animation: spin 1s linear infinite;
}
</style>
<script>
jQuery(document).ready(function($) {
var currentProvider = $('select[name="argon_ai_summary_provider"]').val();
// 鐩戝惉鏈嶅姟鍟嗗彉鍖? $('select[name="argon_ai_summary_provider"]').on('change', function() {
currentProvider = $(this).val();
$('#argon_ai_summary_model').html('<option value=""><?php _e('浣跨敤榛樿妯″瀷', 'argon');?></option>');
});
// 鍒锋柊妯″瀷鍒楄〃
$('#argon_refresh_models').on('click', function() {
var btn = $(this);
var loading = $('#argon_model_loading');
var select = $('#argon_ai_summary_model');
var apiKey = $('input[name="argon_ai_summary_api_key"]').val();
var apiEndpoint = $('input[name="argon_ai_summary_api_endpoint"]').val();
if (!apiKey) {
alert('<?php _e('璇峰厛濉啓 API 瀵嗛挜', 'argon');?>');
return;
}
btn.prop('disabled', true);
loading.show();
$.post(ajaxurl, {
action: 'argon_get_ai_models',
nonce: '<?php echo wp_create_nonce('argon_get_ai_models'); ?>',
provider: currentProvider,
api_key: apiKey,
api_endpoint: apiEndpoint
}, function(response) {
btn.prop('disabled', false);
loading.hide();
if (response.success && response.data.models) {
var currentValue = select.val();
select.html('<option value=""><?php _e('浣跨敤榛樿妯″瀷', 'argon');?></option>');
$.each(response.data.models, function(i, model) {
var selected = model.id === currentValue ? ' selected' : '';
select.append('<option value="' + model.id + '"' + selected + '>' + model.name + '</option>');
});
if (response.data.models.length > 0) {
alert('<?php _e('鎴愬姛鍔犺浇', 'argon');?> ' + response.data.models.length + ' <?php _e('涓ā鍨?, 'argon');?>');
} else {
alert('<?php _e('鏈壘鍒板彲鐢ㄦā鍨?, 'argon');?>');
}
} else {
alert('<?php _e('鑾峰彇妯″瀷鍒楄〃澶辫触', 'argon');?>: ' + (response.data || '<?php _e('鏈煡閿欒', 'argon');?>'));
}
}).fail(function() {
btn.prop('disabled', false);
loading.hide();
alert('<?php _e('璇锋眰澶辫触锛岃妫€鏌ョ綉缁滆繛鎺?, 'argon');?>');
});
});
});
</script>
</td>
</tr>
<tr>
<th><label><?php _e('鎽樿鎻愮ず璇?, 'argon');?></label></th>
<td>
<textarea type="text" rows="4" cols="70" name="argon_ai_summary_prompt"><?php echo get_option('argon_ai_summary_prompt', '浣犳槸涓€涓笓涓氱殑鍐呭鎽樿鍔╂墜銆傝浠旂粏闃呰浠ヤ笅鏂囩珷鍐呭锛岀敤绠€娲併€佸噯纭殑璇█鎬荤粨鏂囩珷鐨勬牳蹇冭鐐瑰拰涓昏鍐呭銆傝姹傦細1) 鎺у埗鍦?100-150 瀛椾互鍐咃紱2) 绐佸嚭鏂囩珷鐨勫叧閿俊鎭拰浜偣锛?) 浣跨敤閫氫織鏄撴噦鐨勮瑷€锛?) 淇濇寔瀹㈣涓珛鐨勮姘斻€?); ?></textarea>
<p class="description"><?php _e('鑷畾涔?AI 鐢熸垚鎽樿鏃朵娇鐢ㄧ殑鎻愮ず璇?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鎺掗櫎鏂囩珷 ID', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_ai_summary_exclude_ids" value="<?php echo get_option('argon_ai_summary_exclude_ids', ''); ?>" placeholder="1,2,3"/>
<p class="description"><?php _e('涓嶆樉绀?AI 鎽樿鐨勬枃绔?ID锛屽涓敤鑻辨枃閫楀彿鍒嗛殧', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鎵嬪姩閲嶆柊鐢熸垚', 'argon');?></label></th>
<td>
<button type="button" class="button" id="argon-clear-ai-summaries"><?php _e('娓呴櫎鎵€鏈?AI 鎽樿缂撳瓨', 'argon');?></button>
<p class="description"><?php _e('娓呴櫎鍚庯紝鎵€鏈夋枃绔犵殑 AI 鎽樿灏嗗湪涓嬫璁块棶鏃堕噸鏂扮敓鎴?, 'argon');?></p>
<script>
jQuery('#argon-clear-ai-summaries').on('click', function() {
if (!confirm('<?php _e('纭畾瑕佹竻闄ゆ墍鏈?AI 鎽樿缂撳瓨鍚楋紵', 'argon');?>')) return;
var btn = jQuery(this);
btn.prop('disabled', true).text('<?php _e('娓呴櫎涓?..', 'argon');?>');
jQuery.post(ajaxurl, {
action: 'argon_clear_ai_summaries',
nonce: '<?php echo wp_create_nonce('argon_clear_ai_summaries'); ?>'
}, function(response) {
if (response.success) {
alert('<?php _e('娓呴櫎鎴愬姛', 'argon');?>');
} else {
alert('<?php _e('娓呴櫎澶辫触', 'argon');?>: ' + (response.data || ''));
}
btn.prop('disabled', false).text('<?php _e('娓呴櫎鎵€鏈?AI 鎽樿缂撳瓨', 'argon');?>');
});
});
</script>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-footnote"><?php _e('鑴氭敞寮曠敤', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鑴氭敞鍒楄〃鏍囬', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_reference_list_title" value="<?php echo (get_option('argon_reference_list_title') == "" ? __('鍙傝€?, 'argon') : get_option('argon_reference_list_title')); ?>"/>
<p class="description"><?php _e('鑴氭敞鍒楄〃鏄剧ず鍦ㄦ枃鏈紝鍦ㄦ枃绔犱腑鏈夎剼娉ㄧ殑鏃跺€欎細鏄剧ず銆?br/>浣跨敤 <code>ref</code> 鐭唬鐮佸彲浠ュ湪鏂囦腑鎻掑叆鑴氭敞銆?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-share"><?php _e('鍒嗕韩', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鏄剧ず鏂囩珷鍒嗕韩鎸夐挳', 'argon');?></label></th>
<td>
<select name="argon_show_sharebtn">
<?php $argon_show_sharebtn = get_option('argon_show_sharebtn'); ?>
<option value="true" <?php if ($argon_show_sharebtn=='true'){echo 'selected';} ?>><?php _e('鏄剧ず鍏ㄩ儴绀句氦濯掍綋', 'argon');?></option>
<option value="domestic" <?php if ($argon_show_sharebtn=='domestic'){echo 'selected';} ?>><?php _e('鏄剧ず鍥藉唴绀句氦濯掍綋', 'argon');?></option>
<option value="abroad" <?php if ($argon_show_sharebtn=='abroad'){echo 'selected';} ?>><?php _e('鏄剧ず鍥藉绀句氦濯掍綋', 'argon');?></option>
<option value="false" <?php if ($argon_show_sharebtn=='false'){echo 'selected';} ?>><?php _e('涓嶆樉绀?, 'argon');?></option>
</select>
<p class="description"></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-toc"><?php _e('鏂囩珷鐩綍', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鍦ㄧ洰褰曚腑鏄剧ず搴忓彿', 'argon');?></label></th>
<td>
<select name="argon_show_headindex_number">
<?php $argon_show_headindex_number = get_option('argon_show_headindex_number'); ?>
<option value="false" <?php if ($argon_show_headindex_number=='false'){echo 'selected';} ?>><?php _e('涓嶆樉绀?, 'argon');?></option>
<option value="true" <?php if ($argon_show_headindex_number=='true'){echo 'selected';} ?>><?php _e('鏄剧ず', 'argon');?></option>
</select>
<p class="description"><?php _e('渚嬶細3.2.5', 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-donate"><?php _e('璧炶祻', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('璧炶祻浜岀淮鐮佸浘鐗囬摼鎺?, 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_donate_qrcode_url" value="<?php echo get_option('argon_donate_qrcode_url'); ?>"/>
<p class="description"><?php _e('璧炶祻浜岀淮鐮佸浘鐗囬摼鎺ワ紝濉啓鍚庝細鍦ㄦ枃绔犳渶鍚庢樉绀鸿禐璧忔寜閽紝鐣欑┖鍒欎笉鏄剧ず璧炶祻鎸夐挳', 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-post-footer"><?php _e('鏂囨湯鍐呭', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鏂囨湯闄勫姞鍐呭', 'argon');?></label></th>
<td>
<textarea type="text" rows="5" cols="100" name="argon_additional_content_after_post"><?php echo htmlspecialchars(get_option('argon_additional_content_after_post')); ?></textarea>
<p class="description"><?php _e('灏嗕細鏄剧ず鍦ㄦ瘡绡囨枃绔犳湯灏撅紝鏀寔 HTML 鏍囩锛岀暀绌哄垯涓嶆樉绀恒€?, 'argon');?><br/><?php _e('浣跨敤 <code>%url%</code> 鏉ヤ唬鏇垮綋鍓嶉〉闈?URL锛?code>%link%</code> 鏉ヤ唬鏇垮綋鍓嶉〉闈㈤摼鎺ワ紝<code>%title%</code> 鏉ヤ唬鏇垮綋鍓嶆枃绔犳爣棰橈紝<code>%author%</code> 鏉ヤ唬鏇垮綋鍓嶆枃绔犱綔鑰呫€?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-related-posts"><?php _e('鐩镐技鏂囩珷鎺ㄨ崘', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鐩镐技鏂囩珷鎺ㄨ崘', 'argon');?></label></th>
<td>
<select name="argon_related_post">
<?php $argon_related_post = get_option('argon_related_post'); ?>
<option value="disabled" <?php if ($argon_related_post=='disabled'){echo 'selected';} ?>><?php _e('鍏抽棴', 'argon');?></option>
<option value="category" <?php if ($argon_related_post=='category'){echo 'selected';} ?>><?php _e('鏍规嵁鍒嗙被鎺ㄨ崘', 'argon');?></option>
<option value="tag" <?php if ($argon_related_post=='tag'){echo 'selected';} ?>><?php _e('鏍规嵁鏍囩鎺ㄨ崘', 'argon');?></option>
<option value="category,tag" <?php if ($argon_related_post=='category,tag'){echo 'selected';} ?>><?php _e('鏍规嵁鍒嗙被鍜屾爣绛炬帹鑽?, 'argon');?></option>
<p class="description"><?php _e('鏄剧ず鍦ㄦ枃绔犲崱鐗囧悗', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鎺掑簭渚濇嵁', 'argon');?></label></th>
<td>
<select name="argon_related_post_sort_orderby">
<?php $argon_related_post_sort_orderby = get_option('argon_related_post_sort_orderby'); ?>
<option value="date" <?php if ($argon_related_post_sort_orderby=='date'){echo 'selected';} ?>><?php _e('鍙戝竷鏃堕棿', 'argon');?></option>
<option value="modified" <?php if ($argon_related_post_sort_orderby=='modified'){echo 'selected';} ?>><?php _e('淇敼鏃堕棿', 'argon');?></option>
<option value="meta_value_num" <?php if ($argon_related_post_sort_orderby=='meta_value_num'){echo 'selected';} ?>><?php _e('闃呰閲?, 'argon');?></option>
<option value="ID" <?php if ($argon_related_post_sort_orderby=='ID'){echo 'selected';} ?>>ID</option>
<option value="title" <?php if ($argon_related_post_sort_orderby=='title'){echo 'selected';} ?>><?php _e('鏍囬', 'argon');?></option>
<option value="author" <?php if ($argon_related_post_sort_orderby=='author'){echo 'selected';} ?>><?php _e('浣滆€?, 'argon');?></option>
<option value="rand" <?php if ($argon_related_post_sort_orderby=='rand'){echo 'selected';} ?>><?php _e('闅忔満', 'argon');?></option>
<p class="description"></p>
</td>
</tr>
<tr>
<th><label><?php _e('椤哄簭', 'argon');?></label></th>
<td>
<select name="argon_related_post_sort_order">
<?php $argon_related_post_sort_order = get_option('argon_related_post_sort_order'); ?>
<option value="DESC" <?php if ($argon_related_post_sort_order=='DESC'){echo 'selected';} ?>><?php _e('鍊掑簭', 'argon');?></option>
<option value="ASC" <?php if ($argon_related_post_sort_order=='ASC'){echo 'selected';} ?>><?php _e('姝e簭', 'argon');?></option>
<p class="description"></p>
</td>
</tr>
<tr>
<th><label><?php _e('鎺ㄨ崘鏂囩珷鏁?, 'argon');?></label></th>
<td>
<input type="number" name="argon_related_post_limit" min="1" max="100" value="<?php echo get_option('argon_related_post_limit' , '10'); ?>"/>
<p class="description"><?php _e('鏈€澶氭帹鑽愬灏戠瘒鏂囩珷', 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-title-style"><?php _e('鏍囬鏍峰紡', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鏂囩珷鍐呮爣棰樻牱寮?, 'argon');?></label></th>
<td>
<select name="argon_article_header_style">
<?php $argon_article_header_style = get_option('argon_article_header_style'); ?>
<option value="article-header-style-default" <?php if ($argon_article_header_style=='article-header-style-default'){echo 'selected';} ?>><?php _e('榛樿鏍峰紡', 'argon');?></option>
<option value="article-header-style-1" <?php if ($argon_article_header_style=='article-header-style-1'){echo 'selected';} ?>><?php _e('鏍峰紡 1', 'argon');?></option>
<option value="article-header-style-2" <?php if ($argon_article_header_style=='article-header-style-2'){echo 'selected';} ?>><?php _e('鏍峰紡 2', 'argon');?></option>
</select>
<p class="description"><?php _e('鏍峰紡棰勮', 'argon');?> :<br/>
<div class="article-header-style-preview style-default"><?php _e('榛樿鏍峰紡', 'argon');?></div>
<div class="article-header-style-preview style-1"><?php _e('鏍峰紡 1', 'argon');?></div>
<div class="article-header-style-preview style-2"><?php _e('鏍峰紡 2', 'argon');?></div>
<style>
.article-header-style-preview{
font-size: 26px;
position: relative;
}
.article-header-style-preview.style-1:after {
content: '';
display: block;
position: absolute;
background: #5e72e4;
opacity: .25;
pointer-events: none;
border-radius: 15px;
left: -2px;
bottom: 0px;
width: 45px;
height: 13px;
}
.article-header-style-preview.style-2:before {
content: '';
display: inline-block;
background: #5e72e4;
opacity: 1;
pointer-events: none;
border-radius: 15px;
width: 6px;
vertical-align: middle;
margin-right: 12px;
height: 20px;
transform: translateY(-1px);
}
</style>
</p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-post-other"><?php _e('杩囨椂鎻愮ず', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鏂囩珷杩囨椂淇℃伅鏄剧ず', 'argon');?></label></th>
<td>
<?php _e('褰撲竴绡囨枃绔犵殑', 'argon');?>
<select name="argon_outdated_info_time_type">
<?php $argon_outdated_info_time_type = get_option('argon_outdated_info_time_type'); ?>
<option value="modifiedtime" <?php if ($argon_outdated_info_time_type=='modifiedtime'){echo 'selected';} ?>><?php _e('鏈€鍚庝慨鏀规椂闂?, 'argon');?></option>
<option value="createdtime" <?php if ($argon_outdated_info_time_type=='createdtime'){echo 'selected';} ?>><?php _e('鍙戝竷鏃堕棿', 'argon');?></option>
</select>
<?php _e('璺濈鐜板湪瓒呰繃', 'argon');?>
<input type="number" name="argon_outdated_info_days" min="-1" max="99999" value="<?php echo (get_option('argon_outdated_info_days') == '' ? '-1' : get_option('argon_outdated_info_days')); ?>"/>
<?php _e('澶╂椂锛岀敤', 'argon');?>
<select name="argon_outdated_info_tip_type">
<?php $argon_outdated_info_tip_type = get_option('argon_outdated_info_tip_type'); ?>
<option value="inpost" <?php if ($argon_outdated_info_tip_type=='inpost'){echo 'selected';} ?>><?php _e('鍦ㄦ枃绔犻《閮ㄦ樉绀轰俊鎭潯', 'argon');?></option>
<option value="toast" <?php if ($argon_outdated_info_tip_type=='toast'){echo 'selected';} ?>><?php _e('鍦ㄩ〉闈㈠彸涓婅寮瑰嚭鎻愮ず鏉?, 'argon');?></option>
</select>
<?php _e('鐨勬柟寮忔彁绀?, 'argon');?>
<br/>
<textarea type="text" name="argon_outdated_info_tip_content" rows="3" cols="100" style="margin-top: 15px;"><?php echo get_option('argon_outdated_info_tip_content') == '' ? __('鏈枃鏈€鍚庢洿鏂颁簬 %date_delta% 澶╁墠锛屽叾涓殑淇℃伅鍙兘宸茬粡鏈夋墍鍙戝睍鎴栨槸鍙戠敓鏀瑰彉銆?, 'argpm') : get_option('argon_outdated_info_tip_content'); ?></textarea>
<p class="description"><?php _e('澶╂暟涓?-1 琛ㄧず姘镐笉鎻愮ず銆?, 'argon');?><br/><code>%date_delta%</code> <?php _e('琛ㄧず鏂囩珷鍙戝竷/淇敼鏃堕棿涓庡綋鍓嶆椂闂寸殑宸窛锛?, 'argon');?><code>%post_date_delta%</code> <?php _e('琛ㄧず鏂囩珷鍙戝竷鏃堕棿涓庡綋鍓嶆椂闂寸殑宸窛锛?, 'argon');?><code>%modify_date_delta%</code> <?php _e('琛ㄧず鏂囩珷淇敼鏃堕棿涓庡綋鍓嶆椂闂寸殑宸窛锛堝崟浣? 澶╋級銆?, 'argon');?></p>
</td>
</tr>
<!-- ========== 13. 鐗规畩椤甸潰 ========== -->
<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><label><?php _e('浠嬬粛', 'argon');?></label></th>
<td>
<p class="description"><?php _e('鏂板缓涓€涓〉闈紝骞跺皢鍏舵ā鏉胯涓?"褰掓。鏃堕棿杞?锛屽嵆鍙垱寤轰竴涓綊妗i〉闈€傚綊妗i〉闈細鎸夌収鏃堕棿椤哄簭鍦ㄦ椂闂磋酱涓婂垪鍑哄崥瀹㈢殑鎵€鏈夋枃绔犮€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鍦ㄦ椂闂磋酱涓婃樉绀烘湀浠?, 'argon');?></label></th>
<td>
<select name="argon_archives_timeline_show_month">
<?php $argon_archives_timeline_show_month = get_option('argon_archives_timeline_show_month'); ?>
<option value="true" <?php if ($argon_archives_timeline_show_month=='true'){echo 'selected';} ?>><?php _e('鏄剧ず', 'argon');?></option>
<option value="false" <?php if ($argon_archives_timeline_show_month=='false'){echo 'selected';} ?>><?php _e('涓嶆樉绀?, 'argon');?></option>
</select>
<p class="description"><?php _e('鍏抽棴鍚庯紝鏃堕棿杞村彧浼氭寜骞翠唤鍒嗚妭', 'argon');?></p>
</td>
</tr>
<!-- ========== 14. 鍔熻兘澧炲己 ========== -->
<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('浠g爜楂樹寒', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鍚敤 Highlight.js 浠g爜楂樹寒', 'argon');?></label></th>
<td>
<select name="argon_enable_code_highlight">
<?php $argon_enable_code_highlight = get_option('argon_enable_code_highlight'); ?>
<option value="false" <?php if ($argon_enable_code_highlight=='false'){echo 'selected';} ?>><?php _e('涓嶅惎鐢?, 'argon');?></option>
<option value="true" <?php if ($argon_enable_code_highlight=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
</select>
<p class="description"><?php _e('鎵€鏈?pre 涓嬬殑 code 鏍囩浼氳鑷姩瑙f瀽', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('楂樹寒閰嶈壊鏂规锛堜富棰橈級', 'argon');?></label></th>
<td>
<select name="argon_code_theme">
<?php
$argon_code_themes_list = array("a11y-dark", "a11y-light", "agate", "an-old-hope", "androidstudio", "arduino-light", "arta", "ascetic", "atelier-cave-dark", "atelier-cave-light", "atelier-dune-dark", "atelier-dune-light", "atelier-estuary-dark", "atelier-estuary-light", "atelier-forest-dark", "atelier-forest-light", "atelier-heath-dark", "atelier-heath-light", "atelier-lakeside-dark", "atelier-lakeside-light", "atelier-plateau-dark", "atelier-plateau-light", "atelier-savanna-dark", "atelier-savanna-light", "atelier-seaside-dark", "atelier-seaside-light", "atelier-sulphurpool-dark", "atelier-sulphurpool-light", "atom-one-dark-reasonable", "atom-one-dark", "atom-one-light", "brown-paper", "codepen-embed", "color-brewer", "darcula", "dark", "darkula", "default", "devibeans", "docco", "dracula", "far", "felipec", "foundation", "github-dark-dimmed", "github-dark", "github-gist", "github", "gml", "googlecode", "gradient-dark", "gradient-light", "grayscale", "gruvbox-dark", "gruvbox-light", "hopscotch", "hybrid", "idea", "intellij-light", "ir-black", "isbl-editor-dark", "isbl-editor-light", "kimbie-dark", "kimbie-light", "kimbie.dark", "kimbie.light", "lightfair", "lioshi", "magula", "mono-blue", "monokai-sublime", "monokai", "night-owl", "nnfx-dark", "nnfx-light", "nnfx", "nord", "obsidian", "ocean", "onedark", "paraiso-dark", "paraiso-light", "pojoaque", "pojoaque.jpg", "purebasic", "qtcreator-dark", "qtcreator-light", "railscasts", "rainbow", "routeros", "school-book", "shades-of-purple", "solarized-dark", "solarized-light", "srcery", "stackoverflow-dark", "stackoverflow-light", "sunburst", "tokyo-night-dark", "tomorrow-night-blue", "tomorrow-night-bright", "tomorrow-night-eighties", "tomorrow-night", "tomorrow", "vs", "vs2015", "xcode", "xt256", "zenburn", "base16/3024", "base16/apathy", "base16/apprentice", "base16/ashes", "base16/atelier-cave-light", "base16/atelier-cave", "base16/atelier-dune-light", "base16/atelier-dune", "base16/atelier-estuary-light", "base16/atelier-estuary", "base16/atelier-forest-light", "base16/atelier-forest", "base16/atelier-heath-light", "base16/atelier-heath", "base16/atelier-lakeside-light", "base16/atelier-lakeside", "base16/atelier-plateau-light", "base16/atelier-plateau", "base16/atelier-savanna-light", "base16/atelier-savanna", "base16/atelier-seaside-light", "base16/atelier-seaside", "base16/atelier-sulphurpool-light", "base16/atelier-sulphurpool", "base16/atlas", "base16/bespin", "base16/black-metal-bathory", "base16/black-metal-burzum", "base16/black-metal-dark-funeral", "base16/black-metal-gorgoroth", "base16/black-metal-immortal", "base16/black-metal-khold", "base16/black-metal-marduk", "base16/black-metal-mayhem", "base16/black-metal-nile", "base16/black-metal-venom", "base16/black-metal", "base16/brewer", "base16/bright", "base16/brogrammer", "base16/brush-trees-dark", "base16/brush-trees", "base16/chalk", "base16/circus", "base16/classic-dark", "base16/classic-light", "base16/codeschool", "base16/colors", "base16/cupcake", "base16/cupertino", "base16/danqing", "base16/darcula", "base16/dark-violet", "base16/darkmoss", "base16/darktooth", "base16/decaf", "base16/default-dark", "base16/default-light", "base16/dirtysea", "base16/dracula", "base16/edge-dark", "base16/edge-light", "base16/eighties", "base16/embers", "base16/equilibrium-dark", "base16/equilibrium-gray-dark", "base16/equilibrium-gray-light", "base16/equilibrium-light", "base16/espresso", "base16/eva-dim", "base16/eva", "base16/flat", "base16/framer", "base16/fruit-soda", "base16/gigavolt", "base16/github", "base16/google-dark", "base16/google-light", "base16/grayscale-dark", "base16/grayscale-light", "base16/green-screen", "base16/gruvbox-dark-hard", "base16/gruvbox-dark-medium", "base16/gruvbox-dark-pale", "base16/gruvbox-dark-soft", "base16/gruvbox-light-hard", "base16/gruvbox-light-medium", "base16/gruvbox-light-soft", "base16/hardcore", "base16/harmonic16-dark", "base16/harmonic16-light", "base16/heetch-dark", "base16/heetch-light", "base16/helios", "base16/hopscotch", "base16/horizon-dark", "base16/horizon-light", "base16/humanoid-dark", "base16/humanoid-light", "base16/ia-dark", "base16/ia-light", "base16/icy-dark", "base16/ir-black", "base16/isotope", "base16/kimber", "base16/london-tube", "base16/macintosh", "base16/marrakesh", "base16/materia", "base16/material-darker", "base16/material-lighter", "base16/material-palenight", "base16/material-vivid", "base16/material", "base16/mellow-purple", "base16/mexico-light", "base16/mocha", "base16/monokai", "base16/nebula", "base16/nord", "base16/nova", "base16/ocean", "base16/oceanicnext", "base16/one-light", "base16/onedark", "base16/outrun-dark", "base16/papercolor-dark", "base16/papercolor-light", "base16/paraiso", "base16/pasque", "base16/phd", "base16/pico", "base16/pop", "base16/porple", "base16/qualia", "base16/railscasts", "base16/rebecca", "base16/ros-pine-dawn", "base16/ros-pine-moon", "base16/ros-pine", "base16/sagelight", "base16/sandcastle", "base16/seti-ui", "base16/shapeshifter", "base16/silk-dark", "base16/silk-light", "base16/snazzy", "base16/solar-flare-light", "base16/solar-flare", "base16/solarized-dark", "base16/solarized-light", "base16/spacemacs", "base16/summercamp", "base16/summerfruit-dark", "base16/summerfruit-light", "base16/synth-midnight-terminal-dark", "base16/synth-midnight-terminal-light", "base16/tango", "base16/tender", "base16/tomorrow-night", "base16/tomorrow", "base16/twilight", "base16/unikitty-dark", "base16/unikitty-light", "base16/vulcan", "base16/windows-10-light", "base16/windows-10", "base16/windows-95-light", "base16/windows-95", "base16/windows-high-contrast-light", "base16/windows-high-contrast", "base16/windows-nt-light", "base16/windows-nt", "base16/woodland", "base16/xcode-dusk", "base16/zenburn");
$argon_code_theme = get_option('argon_code_theme');
if ($argon_code_theme == ''){
$argon_code_theme = "vs2015";
}
foreach ($argon_code_themes_list as $code_theme){
if ($argon_code_theme == $code_theme){
echo "<option value='" . $code_theme . "' selected>" . $code_theme . "</option>";
}else{
echo "<option value='" . $code_theme . "'>" . $code_theme . "</option>";
}
}
?>
</select>
<p class="description"><a href="https://highlightjs.org/static/demo/" target="_blank"><?php _e('鏌ョ湅鎵€鏈変富棰橀瑙?, 'argon');?></a></p>
</td>
</tr>
<tr>
<th><label><?php _e('榛樿鏄剧ず琛屽彿', 'argon');?></label></th>
<td>
<select name="argon_code_highlight_hide_linenumber">
<?php $argon_code_highlight_hide_linenumber = get_option('argon_code_highlight_hide_linenumber'); ?>
<option value="false" <?php if ($argon_code_highlight_hide_linenumber=='false'){echo 'selected';} ?>><?php _e('鏄剧ず', 'argon');?></option>
<option value="true" <?php if ($argon_code_highlight_hide_linenumber=='true'){echo 'selected';} ?>><?php _e('涓嶆樉绀?, 'argon');?></option>
</select>
</td>
</tr>
<tr>
<th><label><?php _e('榛樿鍚敤鑷姩鎶樿', 'argon');?></label></th>
<td>
<select name="argon_code_highlight_break_line">
<?php $argon_code_highlight_break_line = get_option('argon_code_highlight_break_line'); ?>
<option value="false" <?php if ($argon_code_highlight_break_line=='false'){echo 'selected';} ?>><?php _e('涓嶅惎鐢?, 'argon');?></option>
<option value="true" <?php if ($argon_code_highlight_break_line=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
</select>
</td>
</tr>
<tr>
<th><label><?php _e('琛屽彿鑳屾櫙閫忔槑', 'argon');?></label></th>
<td>
<select name="argon_code_highlight_transparent_linenumber">
<?php $argon_code_highlight_transparent_linenumber = get_option('argon_code_highlight_transparent_linenumber', 'false'); ?>
<option value="false" <?php if ($argon_code_highlight_transparent_linenumber=='false'){echo 'selected';} ?>><?php _e('涓嶉€忔槑', 'argon');?></option>
<option value="true" <?php if ($argon_code_highlight_transparent_linenumber=='true'){echo 'selected';} ?>><?php _e('閫忔槑', 'argon');?></option>
</select>
<p class="description"><?php _e('閫傜敤浜庢煇浜涜儗鏅笎鍙樼殑楂樹寒涓婚', 'argon');?></p>
</td>
</tr>
<tr style="opacity: 0.5;">
<th><label><?php _e('濡傛灉鎮ㄦ兂浣跨敤鍏朵粬浠g爜楂樹寒鎻掍欢锛岃€岄潪 Argon 鑷甫楂樹寒锛岃鍓嶅線 "鏉傞」" 鎵撳紑 "绂佺敤 Argon 浠g爜鍧楁牱寮? 鏉ラ槻姝㈡牱寮忓啿绐?, 'argon');?></label></th>
<td>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-math"><?php _e('鏁板鍏紡', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鏁板鍏紡娓叉煋鏂规', 'argon');?></label></th>
<td>
<table class="form-table form-table-dense form-table-mathrender">
<tbody>
<?php $argon_math_render = (get_option('argon_math_render') == '' ? 'none' : get_option('argon_math_render')); ?>
<tr>
<th>
<label>
<input name="argon_math_render" type="radio" value="none" <?php if ($argon_math_render=='none'){echo 'checked';} ?>>
<?php _e('涓嶅惎鐢?, 'argon');?>
</label>
</th>
</tr>
<tr>
<th>
<label>
<input name="argon_math_render" type="radio" value="mathjax3" <?php if ($argon_math_render=='mathjax3'){echo 'checked';} ?>>
Mathjax 3
<div>
<label style="display: block; margin-bottom: 10px;">
<input type="checkbox" name="argon_mathjax3_use_local" value="true" <?php if (get_option('argon_mathjax3_use_local')=='true'){echo 'checked';}?>/>
<?php _e('浣跨敤鏈湴闀滃儚', 'argon');?>
</label>
Mathjax 3 CDN <?php _e('鍦板潃', 'argon');?>:
<input type="text" class="regular-text" name="argon_mathjax_cdn_url" value="<?php echo get_option('argon_mathjax_cdn_url') == '' ? '//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js' : get_option('argon_mathjax_cdn_url'); ?>"/>
<p class="description">Mathjax 3.0+<?php _e('锛岄粯璁や负', 'argon');?> <code>//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js</code><br/><?php _e('鍕鹃€?浣跨敤鏈湴闀滃儚"鍚庡皢浼樺厛浣跨敤涓婚鍐呯疆鐨勫畬鏁寸増鏈?, 'argon');?></p>
</div>
</label>
</th>
</tr>
<tr>
<th>
<label>
<input name="argon_math_render" type="radio" value="mathjax2" <?php if ($argon_math_render=='mathjax2'){echo 'checked';} ?>>
Mathjax 2
<div>
<label style="display: block; margin-bottom: 10px;">
<input type="checkbox" name="argon_mathjax2_use_local" value="true" <?php if (get_option('argon_mathjax2_use_local')=='true'){echo 'checked';}?>/>
<?php _e('浣跨敤鏈湴闀滃儚', 'argon');?>
</label>
Mathjax 2 CDN <?php _e('鍦板潃', 'argon');?>:
<input type="text" class="regular-text" name="argon_mathjax_v2_cdn_url" value="<?php echo get_option('argon_mathjax_v2_cdn_url') == '' ? '//cdn.jsdelivr.net/npm/mathjax@2.7.5/MathJax.js?config=TeX-AMS_HTML' : get_option('argon_mathjax_v2_cdn_url'); ?>"/>
<p class="description">Mathjax 2.0+<?php _e('锛岄粯璁や负', 'argon');?> <code>//cdn.jsdelivr.net/npm/mathjax@2.7.5/MathJax.js?config=TeX-AMS_HTML</code><br/><?php _e('鍕鹃€?浣跨敤鏈湴闀滃儚"鍚庡皢浼樺厛浣跨敤涓婚鍐呯疆鐨勫畬鏁寸増鏈?, 'argon');?></p>
</div>
</label>
</th>
</tr>
<tr>
<th>
<label>
<input name="argon_math_render" type="radio" value="katex" <?php if ($argon_math_render=='katex'){echo 'checked';} ?>>
Katex
<div>
<label style="display: block; margin-bottom: 10px;">
<input type="checkbox" name="argon_katex_use_local" value="true" <?php if (get_option('argon_katex_use_local')=='true'){echo 'checked';}?>/>
<?php _e('浣跨敤鏈湴闀滃儚', 'argon');?>
</label>
Katex CDN <?php _e('鍦板潃', 'argon');?>:
<input type="text" class="regular-text" name="argon_katex_cdn_url" value="<?php echo get_option('argon_katex_cdn_url') == '' ? '//cdn.jsdelivr.net/npm/katex@0.11.1/dist/' : get_option('argon_katex_cdn_url'); ?>"/>
<p class="description"><?php _e('Argon 浼氬悓鏃跺紩鐢?, 'argon');?> <code>katex.min.css</code> <?php _e('鍜?, 'argon');?> <code>katex.min.js</code> <?php _e('涓や釜鏂囦欢锛屾墍浠ュ湪姝ゅ~鍐欑殑鏄笂灞傜殑璺緞锛岃€屼笉鏄叿浣撶殑鏂囦欢銆傛敞鎰忚矾寰勫悗瑕佸甫涓€涓枩鏉犮€?, 'argon');?><br/><?php _e('榛樿涓?, 'argon');?> <code>//cdn.jsdelivr.net/npm/katex@0.11.1/dist/</code><br/><?php _e('鍕鹃€?浣跨敤鏈湴闀滃儚"鍚庡皢浼樺厛浣跨敤涓婚鍐呯疆鐨勫畬鏁寸増鏈?, 'argon');?></p>
</div>
</label>
</th>
</tr>
</tbody>
</table>
<p class="description"></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-lazyload">Lazyload</h3></th></tr>
<tr>
<th><label><?php _e('鏄惁鍚敤 Lazyload', 'argon');?></label></th>
<td>
<select name="argon_enable_lazyload">
<?php $argon_enable_lazyload = get_option('argon_enable_lazyload'); ?>
<option value="true" <?php if ($argon_enable_lazyload=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="false" <?php if ($argon_enable_lazyload=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('鏄惁鍚敤 Lazyload 鍔犺浇鏂囩珷鍐呭浘鐗?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鎻愬墠鍔犺浇闃堝€?, 'argon');?></label></th>
<td>
<input type="number" name="argon_lazyload_threshold" min="0" max="2500" value="<?php echo (get_option('argon_lazyload_threshold') == '' ? '800' : get_option('argon_lazyload_threshold')); ?>"/>
<p class="description"><?php _e('鍥剧墖璺濈椤甸潰搴曢儴杩樻湁澶氬皯璺濈灏卞紑濮嬫彁鍓嶅姞杞?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('LazyLoad 鍥剧墖鍔犺浇瀹屾垚杩囨浮', 'argon');?></label></th>
<td>
<select name="argon_lazyload_effect">
<?php $argon_lazyload_effect = get_option('argon_lazyload_effect'); ?>
<option value="fadeIn" <?php if ($argon_lazyload_effect=='fadeIn'){echo 'selected';} ?>>fadeIn</option>
<option value="slideDown" <?php if ($argon_lazyload_effect=='slideDown'){echo 'selected';} ?>>slideDown</option>
<option value="none" <?php if ($argon_lazyload_effect=='none'){echo 'selected';} ?>><?php _e('涓嶄娇鐢ㄨ繃娓?, 'argon');?></option>
</select>
<p class="description"></p>
</td>
</tr>
<tr>
<th><label><?php _e('LazyLoad 鍥剧墖鍔犺浇鍔ㄦ晥', 'argon');?></label></th>
<td>
<select name="argon_lazyload_loading_style">
<?php $argon_lazyload_loading_style = get_option('argon_lazyload_loading_style'); ?>
<option value="1" <?php if ($argon_lazyload_loading_style=='1'){echo 'selected';} ?>><?php _e('鍔犺浇鍔ㄧ敾', 'argon');?> 1</option>
<option value="2" <?php if ($argon_lazyload_loading_style=='2'){echo 'selected';} ?>><?php _e('鍔犺浇鍔ㄧ敾', 'argon');?> 2</option>
<option value="3" <?php if ($argon_lazyload_loading_style=='3'){echo 'selected';} ?>><?php _e('鍔犺浇鍔ㄧ敾', 'argon');?> 3</option>
<option value="4" <?php if ($argon_lazyload_loading_style=='4'){echo 'selected';} ?>><?php _e('鍔犺浇鍔ㄧ敾', 'argon');?> 4</option>
<option value="5" <?php if ($argon_lazyload_loading_style=='5'){echo 'selected';} ?>><?php _e('鍔犺浇鍔ㄧ敾', 'argon');?> 5</option>
<option value="6" <?php if ($argon_lazyload_loading_style=='6'){echo 'selected';} ?>><?php _e('鍔犺浇鍔ㄧ敾', 'argon');?> 6</option>
<option value="7" <?php if ($argon_lazyload_loading_style=='7'){echo 'selected';} ?>><?php _e('鍔犺浇鍔ㄧ敾', 'argon');?> 7</option>
<option value="8" <?php if ($argon_lazyload_loading_style=='8'){echo 'selected';} ?>><?php _e('鍔犺浇鍔ㄧ敾', 'argon');?> 8</option>
<option value="9" <?php if ($argon_lazyload_loading_style=='9'){echo 'selected';} ?>><?php _e('鍔犺浇鍔ㄧ敾', 'argon');?> 9</option>
<option value="10" <?php if ($argon_lazyload_loading_style=='10'){echo 'selected';} ?>><?php _e('鍔犺浇鍔ㄧ敾', 'argon');?> 10</option>
<option value="11" <?php if ($argon_lazyload_loading_style=='11'){echo 'selected';} ?>><?php _e('鍔犺浇鍔ㄧ敾', 'argon');?> 11</option>
<option value="none" <?php if ($argon_lazyload_loading_style=='none'){echo 'selected';} ?>><?php _e('涓嶄娇鐢?, 'argon');?></option>
</select>
<p class="description"><?php _e('鍦ㄥ浘鐗囪鍔犺浇涔嬪墠鏄剧ず鐨勫姞杞芥晥鏋?, 'argon');?> , <a target="_blank" href="<?php bloginfo('template_url'); ?>/assets/vendor/svg-loaders"><?php _e('棰勮鎵€鏈夋晥鏋?, 'argon');?></a></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-lightbox"><?php _e('鍥剧墖鏀惧ぇ娴忚', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鏄惁鍚敤鍥剧墖鏀惧ぇ娴忚 (Fancybox)', 'argon');?></label></th>
<td>
<select name="argon_enable_fancybox" onchange="if (this.value == 'true'){setInputValue('argon_enable_zoomify','false');}">
<?php $argon_enable_fancybox = get_option('argon_enable_fancybox'); ?>
<option value="true" <?php if ($argon_enable_fancybox=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="false" <?php if ($argon_enable_fancybox=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗锛屾枃绔犱腑鍥剧墖琚崟鍑绘椂浼氭斁澶ч瑙?, 'argon');?></p>
</td>
</tr>
<tr style="opacity: 0.5;" onclick="$(this).remove();$('.zoomify-old-settings').fadeIn(500);">
<th><label><?php _e('灞曞紑鏃х増鍥剧墖鏀惧ぇ娴忚 (Zoomify) 璁剧疆 鈻?, 'argon');?></label></th>
<td>
</td>
</tr>
<style>
.zoomify-old-settings{
opacity: 0.65;
}
.zoomify-old-settings:hover{
opacity: 1;
}
</style>
<tr class="zoomify-old-settings" style="display: none;">
<th><label><?php _e('鏄惁鍚敤鏃х増鍥剧墖鏀惧ぇ娴忚 (Zoomify)', 'argon');?></label></th>
<td>
<select name="argon_enable_zoomify" onchange="if (this.value == 'true'){setInputValue('argon_enable_fancybox','false');}">
<?php $argon_enable_zoomify = get_option('argon_enable_zoomify'); ?>
<option value="true" <?php if ($argon_enable_zoomify=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="false" <?php if ($argon_enable_zoomify=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('鑷?Argon 1.1.0 鐗堟湰鍚庯紝鍥剧墖缂╂斁棰勮搴撶敱 Zoomify 鏇存崲涓?Fancybox锛屽鏋滄偍杩樻兂浣跨敤鏃х増鍥剧墖棰勮锛岃寮€鍚閫夐」銆傛敞鎰? Zoomify 鍜?Fancybox 涓嶈兘鍚屾椂寮€鍚€?, 'argon');?></p>
</td>
</tr>
<tr class="zoomify-old-settings" style="display: none;">
<th><label><?php _e('缂╂斁鍔ㄧ敾闀垮害', 'argon');?></label></th>
<td>
<input type="number" name="argon_zoomify_duration" min="0" max="10000" value="<?php echo (get_option('argon_zoomify_duration') == '' ? '200' : get_option('argon_zoomify_duration')); ?>"/> ms
<p class="description"><?php _e('鍥剧墖琚崟鍑诲悗缂╂斁鍒板叏灞忓姩鐢荤殑鏃堕棿闀垮害', 'argon');?></p>
</td>
</tr>
<tr class="zoomify-old-settings" style="display: none;">
<th><label><?php _e('缂╂斁鍔ㄧ敾鏇茬嚎', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_zoomify_easing" value="<?php echo (get_option('argon_zoomify_easing') == '' ? 'cubic-bezier(0.4,0,0,1)' : get_option('argon_zoomify_easing')); ?>"/>
<p class="description">
<?php _e('渚嬶細', 'argon');?> <code>ease</code> , <code>ease-in-out</code> , <code>ease-out</code> , <code>linear</code> , <code>cubic-bezier(0.4,0,0,1)</code><br/><?php _e('濡傛灉浣犱笉鐭ラ亾杩欐槸浠€涔堬紝鍙傝€?, 'argon');?><a href="https://www.w3school.com.cn/cssref/pr_animation-timing-function.asp" target="_blank"><?php _e('杩欓噷', 'argon');?></a>
</p>
</td>
</tr>
<tr class="zoomify-old-settings" style="display: none;">
<th><label><?php _e('鍥剧墖鏈€澶х缉鏀炬瘮渚?, 'argon');?></label></th>
<td>
<input type="number" name="argon_zoomify_scale" min="0.01" max="1" step="0.01" value="<?php echo (get_option('argon_zoomify_scale') == '' ? '0.9' : get_option('argon_zoomify_scale')); ?>"/>
<p class="description"><?php _e('鍥剧墖鐩稿浜庨〉闈㈢殑鏈€澶х缉鏀炬瘮渚?(0 ~ 1 鐨勫皬鏁?', 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-pangu">Pangu.js</h3></th></tr>
<tr>
<th><label><?php _e('鍚敤 Pangu.js (鑷姩鍦ㄤ腑鑻辨枃涔嬮棿娣诲姞绌烘牸)', 'argon');?></label></th>
<td>
<select name="argon_enable_pangu">
<?php $argon_enable_pangu = get_option('argon_enable_pangu'); ?>
<option value="false" <?php if ($argon_enable_pangu=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
<option value="article" <?php if ($argon_enable_pangu=='article'){echo 'selected';} ?>><?php _e('鏍煎紡鍖栨枃绔犲唴瀹?, 'argon');?></option>
<option value="shuoshuo" <?php if ($argon_enable_pangu=='shuoshuo'){echo 'selected';} ?>><?php _e('鏍煎紡鍖栬璇?, 'argon');?></option>
<option value="comment" <?php if ($argon_enable_pangu=='comment'){echo 'selected';} ?>><?php _e('鏍煎紡鍖栬瘎璁哄尯', 'argon');?></option>
<option value="article|comment" <?php if ($argon_enable_pangu=='article|comment'){echo 'selected';} ?>><?php _e('鏍煎紡鍖栨枃绔犲唴瀹瑰拰璇勮鍖?, 'argon');?></option>
<option value="article|shuoshuo" <?php if ($argon_enable_pangu=='article|shuoshuo'){echo 'selected';} ?>><?php _e('鏍煎紡鍖栨枃绔犲唴瀹瑰拰璇磋', 'argon');?></option>
<option value="shuoshuo|comment" <?php if ($argon_enable_pangu=='shuoshuo|comment'){echo 'selected';} ?>><?php _e('鏍煎紡鍖栬璇村拰璇勮鍖?, 'argon');?></option>
<option value="article|shuoshuo|comment" <?php if ($argon_enable_pangu=='article|shuoshuo|comment'){echo 'selected';} ?>><?php _e('鏍煎紡鍖栨枃绔犲唴瀹广€佽璇村拰璇勮鍖?, 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗锛屼細鑷姩鍦ㄤ腑鏂囧拰鑻辨枃涔嬮棿娣诲姞绌烘牸', 'argon');?></p>
</td>
</tr>
<!-- ========== 15. 楂樼骇璁剧疆 ========== -->
<tr><th class="subtitle"><h2 id="section-advanced"><?php _e('楂樼骇璁剧疆', 'argon');?></h2></th></tr>
<tr><th class="subtitle"><h3 id="subsection-scripts"><?php _e('鑷畾涔夎剼鏈?, 'argon');?></h3></th></tr>
<tr>
<th><label><strong style="color:#ff0000;"><?php _e('娉ㄦ剰', 'argon');?></strong></label></th>
<td>
<p class="description"><strong style="color:#ff0000;"><?php _e('Argon 浣跨敤 pjax 鏂瑰紡鍔犺浇椤甸潰 (鏃犲埛鏂板姞杞? , 鎵€浠ラ櫎闈為〉闈㈡墜鍔ㄥ埛鏂帮紝鍚﹀垯鎮ㄧ殑鑴氭湰鍙細琚墽琛屼竴娆°€?, 'argon');?><br/>
<?php _e('濡傛灉鎮ㄦ兂璁╂瘡娆¢〉闈㈣烦杞?鍔犺浇鏂伴〉闈?鏃堕兘鎵ц鑴氭湰锛岃灏嗚剼鏈啓鍏?, 'argon');?> <code>window.pjaxLoaded</code> <?php _e('涓?, 'argon');?></strong> 锛??php _e('绀轰緥鍐欐硶', 'argon');?>:
<pre>
window.pjaxLoaded = function(){
//<?php _e('椤甸潰姣忔璺宠浆閮戒細鎵ц杩欓噷鐨勪唬鐮?, 'argon');?>
//do something...
}
</pre>
<strong style="color:#ff0000;"><?php _e('褰撻〉闈㈢涓€娆¤浇鍏ユ椂锛?, 'argon');?><code>window.pjaxLoaded</code> <?php _e('涓殑鑴氭湰涓嶄細鎵ц锛屾墍浠ユ偍鍙互鎵嬪姩鎵ц', 'argon');?> <code>window.pjaxLoaded();</code> <?php _e('鏉ヨ椤甸潰鍒濇鍔犺浇鏃朵篃鎵ц鑴氭湰', 'argon');?></strong></p>
</td>
</tr>
<tr>
<th><label><?php _e('椤靛ご鑴氭湰', 'argon');?></label></th>
<td>
<textarea type="text" rows="15" cols="100" name="argon_custom_html_head"><?php echo htmlspecialchars(get_option('argon_custom_html_head')); ?></textarea>
<p class="description"><?php _e('HTML , 鏀寔 script 绛夋爣绛?, 'argon');?><br/><?php _e('鎻掑叆鍒?body 涔嬪墠', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('椤靛熬鑴氭湰', 'argon');?></label></th>
<td>
<textarea type="text" rows="15" cols="100" name="argon_custom_html_foot"><?php echo htmlspecialchars(get_option('argon_custom_html_foot')); ?></textarea>
<p class="description"><?php _e('HTML , 鏀寔 script 绛夋爣绛?, 'argon');?><br/><?php _e('鎻掑叆鍒?body 涔嬪悗', 'argon');?></p>
</td>
</tr>
<!-- ========== 16. 璇勮璁剧疆 ========== -->
<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><label><?php _e('璇勮鍒嗛〉鏂瑰紡', 'argon');?></label></th>
<td>
<select name="argon_comment_pagination_type">
<?php $argon_comment_pagination_type = get_option('argon_comment_pagination_type'); ?>
<option value="feed" <?php if ($argon_comment_pagination_type=='feed'){echo 'selected';} ?>><?php _e('鏃犻檺鍔犺浇', 'argon');?></option>
<option value="page" <?php if ($argon_comment_pagination_type=='page'){echo 'selected';} ?>><?php _e('椤电爜', 'argon');?></option>
</select>
<p class="description">
<?php _e('鏃犻檺鍔犺浇锛氱偣鍑?"鍔犺浇鏇村" 鎸夐挳鏉ュ姞杞芥洿澶氳瘎璁恒€?, 'argon');?><br/>
<?php _e('椤电爜锛氭樉绀洪〉鐮佹潵鍒嗛〉銆?, 'argon');?><br/>
<span class="go-to-wp-comment-settings"><?php _e('閫夋嫨"鏃犻檺鍔犺浇"鏃讹紝濡傛灉寮€鍚簡璇勮鍒嗛〉锛岃灏?Wordpress 鐨勮璁鸿缃涓?"榛樿鏄剧ず<b>鏈€鍚?/b>涓€椤碉紝鍦ㄦ瘡涓〉闈㈤《閮ㄦ樉绀?b>鏂扮殑</b>璇勮"銆?, 'argon');?> <a href="./options-discussion.php" target="_blank"><?php _e('鍘昏缃?, 'argon');?>&gt;&gt;&gt;</a></span>
<?php if (get_option('page_comments') == '1' && get_option('default_comments_page') != 'newest' && get_option('comment_order') != 'desc') {
echo '<script>$(".go-to-wp-comment-settings").addClass("wrong-options");</script>';
};?>
<script>
$("select[name='argon_comment_pagination_type']").change(function(){
if ($(this).val() == 'feed') {
$(".go-to-wp-comment-settings").addClass("using-feed");
} else {
$(".go-to-wp-comment-settings").removeClass("using-feed");
}
}).change();
</script>
<style>
.go-to-wp-comment-settings a{
display: none;
}
.go-to-wp-comment-settings.wrong-options.using-feed a{
display: inline-block;
}
.go-to-wp-comment-settings.wrong-options.using-feed{
color: #f00;
}
</style>
</p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-comment-submit"><?php _e('鍙戦€佽瘎璁?, 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('璇勮琛ㄦ儏闈㈡澘', 'argon');?></label></th>
<td>
<select name="argon_comment_emotion_keyboard">
<?php $argon_comment_emotion_keyboard = get_option('argon_comment_emotion_keyboard'); ?>
<option value="true" <?php if ($argon_comment_emotion_keyboard=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="false" <?php if ($argon_comment_emotion_keyboard=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗璇勮鏀寔鎻掑叆琛ㄦ儏锛屼細鍦ㄨ瘎璁鸿緭鍏ユ涓嬫樉绀鸿〃鎯呴敭鐩樻寜閽€?, 'argon');?><br/><a href="https://argon-docs.solstice23.top/#/emotions" target="_blank"><?php _e('濡備綍娣诲姞鏂扮殑琛ㄦ儏鎴栦慨鏀瑰凡鏈夎〃鎯呭垪琛紵', 'argon');?></a></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏄惁闅愯棌 "鏄电О"銆?閭"銆?缃戠珯" 杈撳叆妗?, 'argon');?></label></th>
<td>
<select name="argon_hide_name_email_site_input">
<?php $argon_hide_name_email_site_input = get_option('argon_hide_name_email_site_input'); ?>
<option value="false" <?php if ($argon_hide_name_email_site_input=='false'){echo 'selected';} ?>><?php _e('涓嶉殣钘?, 'argon');?></option>
<option value="true" <?php if ($argon_hide_name_email_site_input=='true'){echo 'selected';} ?>><?php _e('闅愯棌', 'argon');?></option>
</select>
<p class="description"><?php _e('閫夐」浠呭湪 "璁剧疆-璇勮-璇勮浣滆€呭繀椤诲~鍏ュ鍚嶅拰鐢靛瓙閭欢鍦板潃" 閫夐」鏈嬀閫夌殑鍓嶆彁涓嬬敓鏁堛€傚鍕鹃€変簡 "璇勮浣滆€呭繀椤诲~鍏ュ鍚嶅拰鐢靛瓙閭欢鍦板潃"锛屽垯鍙湁 "缃戠珯" 杈撳叆妗嗕細琚殣钘忋€?, 'argon');?>璇?/p>
</td>
</tr>
<!-- ========== 17. 楠岃瘉鐮佽缃?========== -->
<tr><th class="subtitle"><h2 id="section-captcha"><?php _e('楠岃瘉鐮佽缃?, 'argon');?></h2></th></tr>
<tr><th class="subtitle"><h3 id="subsection-captcha"><?php _e('楠岃瘉鐮侀厤缃?, 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鍏ㄥ眬楠岃瘉鐮佸紑鍏?, 'argon');?></label></th>
<td>
<select name="argon_need_captcha">
<?php $argon_need_captcha = get_option('argon_need_captcha', get_option('argon_comment_need_captcha', 'true')); ?>
<option value="true" <?php if ($argon_need_captcha=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="false" <?php if ($argon_need_captcha=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('鍏ㄥ眬楠岃瘉鐮佸紑鍏筹紝褰撳悇鍦烘櫙璁剧疆涓?浣跨敤鍏ㄥ眬璁剧疆"鏃剁敓鏁?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('楠岃瘉鐮佺被鍨?, 'argon');?></label></th>
<td>
<select name="argon_captcha_type">
<?php $argon_captcha_type = get_option('argon_captcha_type', 'math'); ?>
<option value="math" <?php if ($argon_captcha_type=='math'){echo 'selected';} ?>><?php _e('鏁板杩愮畻', 'argon');?></option>
<option value="geetest" <?php if ($argon_captcha_type=='geetest'){echo 'selected';} ?>><?php _e('鏋侀獙楠岃瘉鐮?, 'argon');?></option>
</select>
<p class="description"><?php _e('閫夋嫨楠岃瘉鐮佺被鍨嬨€傛瀬楠岄獙璇佺爜闇€瑕侀厤缃浉鍏冲弬鏁般€?, 'argon');?></p>
</td>
</tr>
<tr id="geetest_settings" style="<?php echo ($argon_captcha_type != 'geetest') ? 'display:none;' : ''; ?>">
<th><label><?php _e('鏋侀獙楠岃瘉鐮?ID', 'argon');?></label></th>
<td>
<input type="text" name="argon_geetest_captcha_id" value="<?php echo esc_attr(get_option('argon_geetest_captcha_id', '')); ?>" class="regular-text" required />
<p class="description"><?php _e('鍦ㄦ瀬楠屽悗鍙拌幏鍙栫殑楠岃瘉鐮?ID锛屽繀濉」', 'argon');?></p>
</td>
</tr>
<tr id="geetest_key_settings" style="<?php echo ($argon_captcha_type != 'geetest') ? 'display:none;' : ''; ?>">
<th><label><?php _e('鏋侀獙楠岃瘉鐮?Key', 'argon');?></label></th>
<td>
<input type="text" name="argon_geetest_captcha_key" value="<?php echo esc_attr(get_option('argon_geetest_captcha_key', '')); ?>" class="regular-text" required />
<p class="description"><?php _e('鍦ㄦ瀬楠屽悗鍙拌幏鍙栫殑楠岃瘉鐮佺閽ワ紝蹇呭~椤?, 'argon');?></p>
</td>
</tr>
<tr id="geetest_server_settings" style="<?php echo ($argon_captcha_type != 'geetest') ? 'display:none;' : ''; ?>">
<th><label><?php _e('鏋侀獙 API 鏈嶅姟鍣?, 'argon');?></label></th>
<td>
<input type="url" name="argon_geetest_api_server" value="<?php echo esc_attr(get_option('argon_geetest_api_server', 'https://gcaptcha4.geetest.com')); ?>" class="regular-text" />
<p class="description"><?php _e('鏋侀獙 API 鏈嶅姟鍣ㄥ湴鍧€锛岄粯璁や负瀹樻柟鏈嶅姟鍣ㄣ€傝纭繚URL鏍煎紡姝', 'argon');?></p>
</td>
</tr>
<script>
jQuery(document).ready(function($) {
// 楠岃瘉Geetest閰嶇疆
function validateGeetestConfig() {
var captchaType = $('select[name="argon_captcha_type"]').val();
if (captchaType === 'geetest') {
var captchaId = $('input[name="argon_geetest_captcha_id"]').val().trim();
var captchaKey = $('input[name="argon_geetest_captcha_key"]').val().trim();
var apiServer = $('input[name="argon_geetest_api_server"]').val().trim();
if (!captchaId || !captchaKey) {
alert('<?php _e('浣跨敤鏋侀獙楠岃瘉鐮佹椂锛岄獙璇佺爜 ID 鍜?Key 涓哄繀濉」', 'argon'); ?>');
return false;
}
// 楠岃瘉API鏈嶅姟鍣║RL鏍煎紡
if (apiServer && !apiServer.match(/^https?:\/\/.+/)) {
alert('<?php _e('API 鏈嶅姟鍣ㄥ湴鍧€鏍煎紡涓嶆纭紝璇疯緭鍏ュ畬鏁寸殑URL', 'argon'); ?>');
return false;
}
}
return true;
}
$('select[name="argon_captcha_type"]').change(function() {
if ($(this).val() === 'geetest') {
$('#geetest_settings, #geetest_key_settings, #geetest_server_settings').show();
} else {
$('#geetest_settings, #geetest_key_settings, #geetest_server_settings').hide();
}
});
// 琛ㄥ崟鎻愪氦鏃堕獙璇?
$('form').submit(function(e) {
if (!validateGeetestConfig()) {
e.preventDefault();
return false;
}
});
});
</script>
<tr>
<th><label><?php _e('浣跨敤 Ajax 鑾峰彇楠岃瘉鐮?, 'argon');?></label></th>
<td>
<select name="argon_get_captcha_by_ajax">
<?php $argon_get_captcha_by_ajax = get_option('argon_get_captcha_by_ajax'); ?>
<option value="false" <?php if ($argon_get_captcha_by_ajax=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
<option value="true" <?php if ($argon_get_captcha_by_ajax=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
</select>
<p class="description"><?php _e('濡傛灉浣跨敤浜?CDN 缂撳瓨锛岄獙璇佺爜涓嶄細鍒锋柊锛岃寮€鍚閫夐」锛屽惁鍒欒涓嶈寮€鍚€?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-captcha-scenes"><?php _e('鍦烘櫙楠岃瘉鐮?, 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('璇勮楠岃瘉鐮?, 'argon');?></label></th>
<td>
<select name="argon_comment_captcha_mode">
<?php $argon_comment_captcha_mode = get_option('argon_comment_captcha_mode', 'global'); ?>
<option value="global" <?php if ($argon_comment_captcha_mode=='global'){echo 'selected';} ?>><?php _e('浣跨敤鍏ㄥ眬璁剧疆', 'argon');?></option>
<option value="enabled" <?php if ($argon_comment_captcha_mode=='enabled'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="disabled" <?php if ($argon_comment_captcha_mode=='disabled'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('璇勮鏄惁闇€瑕侀獙璇佺爜', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('TODO 鍌績楠岃瘉鐮?, 'argon');?></label></th>
<td>
<select name="argon_todo_captcha_mode">
<?php $argon_todo_captcha_mode = get_option('argon_todo_captcha_mode', 'global'); ?>
<option value="global" <?php if ($argon_todo_captcha_mode=='global'){echo 'selected';} ?>><?php _e('浣跨敤鍏ㄥ眬璁剧疆', 'argon');?></option>
<option value="enabled" <?php if ($argon_todo_captcha_mode=='enabled'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="disabled" <?php if ($argon_todo_captcha_mode=='disabled'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('璁垮鍌績 TODO 鏃舵槸鍚﹂渶瑕侀獙璇佺爜', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鍙嬮摼鐢宠楠岃瘉鐮?, 'argon');?></label></th>
<td>
<select name="argon_friend_link_captcha">
<?php $flink_captcha = get_option('argon_friend_link_captcha', 'global'); ?>
<option value="global" <?php if ($flink_captcha=='global' || $flink_captcha=='same'){echo 'selected';} ?>><?php _e('浣跨敤鍏ㄥ眬璁剧疆', 'argon');?></option>
<option value="enabled" <?php if ($flink_captcha=='enabled'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="disabled" <?php if ($flink_captcha=='disabled'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('鍙嬮摼鐢宠琛ㄥ崟鏄惁闇€瑕侀獙璇佺爜', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鍙嶉鎻愪氦楠岃瘉鐮?, 'argon');?></label></th>
<td>
<select name="argon_feedback_captcha_mode">
<?php $feedback_captcha = get_option('argon_feedback_captcha_mode', 'global'); ?>
<option value="global" <?php if ($feedback_captcha=='global'){echo 'selected';} ?>><?php _e('浣跨敤鍏ㄥ眬璁剧疆', 'argon');?></option>
<option value="enabled" <?php if ($feedback_captcha=='enabled'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="disabled" <?php if ($feedback_captcha=='disabled'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('闂鍙嶉椤甸潰鎻愪氦鏃舵槸鍚﹂渶瑕侀獙璇佺爜', 'argon');?></p>
</td>
</tr>
<!-- ========== 18. 鍙嶉涓庡畨鍏?========== -->
<tr><th class="subtitle"><h2 id="section-feedback-security"><?php _e('鍙嶉涓庡畨鍏?, 'argon');?></h2></th></tr>
<tr><th class="subtitle"><h3 id="subsection-feedback"><?php _e('鍙嶉璁剧疆', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鏂板弽棣堥€氱煡绠$悊鍛?, 'argon');?></label></th>
<td>
<select name="argon_feedback_notify_admin">
<?php $feedback_notify_admin = get_option('argon_feedback_notify_admin', 'true'); ?>
<option value="true" <?php if ($feedback_notify_admin=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="false" <?php if ($feedback_notify_admin=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('鏀跺埌鏂板弽棣堟椂鏄惁鍙戦€侀偖浠堕€氱煡绠$悊鍛?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鍙嶉鍥炲/瀹岀粨閫氱煡鐢ㄦ埛', 'argon');?></label></th>
<td>
<select name="argon_feedback_notify_user">
<?php $feedback_notify_user = get_option('argon_feedback_notify_user', 'true'); ?>
<option value="true" <?php if ($feedback_notify_user=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="false" <?php if ($feedback_notify_user=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('鍙嶉鏀跺埌鍥炲鎴栬鏍囪涓哄凡瑙e喅鏃讹紝鏄惁鍙戦€侀偖浠堕€氱煡鐢ㄦ埛銆傞偖浠朵腑鍖呭惈鎺堟潈閾炬帴锛岀敤鎴峰彲閫氳繃閾炬帴鏌ョ湅鍙嶉璇︽儏锛堟棤璁哄弽棣堟槸鍚﹀叕寮€锛?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-rate-limit"><?php _e('閫熺巼闄愬埗', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鍏ㄥ眬 IP 榛戝悕鍗?, 'argon');?></label></th>
<td>
<textarea name="argon_global_blocked_ips" rows="8" cols="70" placeholder="<?php _e('姣忚涓€涓?IP 鍦板潃', 'argon');?>"><?php echo get_option('argon_global_blocked_ips', ''); ?></textarea>
<p class="description">
<?php _e('琚睆钄界殑 IP 鍦板潃灏嗘棤娉曟彁浜よ瘎璁恒€佸弽棣堛€佸弸閾剧敵璇风瓑鎿嶄綔銆傛敮鎸佷互涓嬫牸寮忥細', 'argon');?><br>
鈥?<?php _e('绮剧‘鍖归厤锛?92.168.1.100', 'argon');?><br>
鈥?<?php _e('閫氶厤绗︼細192.168.1.*', 'argon');?><br>
鈥?<?php _e('CIDR 鏍煎紡锛?92.168.1.0/24', 'argon');?>
</p>
</td>
</tr>
<tr>
<th><label><?php _e('鍙嬮摼鐢宠棰戠巼闄愬埗', 'argon');?></label></th>
<td>
<input type="number" name="argon_flink_apply_limit" min="1" max="50" value="<?php echo get_option('argon_flink_apply_limit', '3'); ?>" style="width:80px;"/> <?php _e('娆?, 'argon');?> /
<input type="number" name="argon_flink_apply_period" min="60" max="86400" value="<?php echo get_option('argon_flink_apply_period', '3600'); ?>" style="width:100px;"/> <?php _e('绉?, 'argon');?>
<p class="description"><?php _e('闄愬埗鍗曚釜鐢ㄦ埛鍦ㄦ寚瀹氭椂闂村唴鎻愪氦鍙嬮摼鐢宠鐨勬鏁般€傞粯璁わ細1灏忔椂鍐呮渶澶?娆?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鍙嶉鎻愪氦棰戠巼闄愬埗', 'argon');?></label></th>
<td>
<input type="number" name="argon_feedback_submit_limit" min="1" max="100" value="<?php echo get_option('argon_feedback_submit_limit', '5'); ?>" style="width:80px;"/> <?php _e('娆?, 'argon');?> /
<input type="number" name="argon_feedback_submit_period" min="60" max="86400" value="<?php echo get_option('argon_feedback_submit_period', '3600'); ?>" style="width:100px;"/> <?php _e('绉?, 'argon');?>
<p class="description"><?php _e('闄愬埗鍗曚釜鐢ㄦ埛鍦ㄦ寚瀹氭椂闂村唴鎻愪氦鍙嶉鐨勬鏁帮紝闃叉鎭舵剰鍒峰睆銆傞粯璁わ細1灏忔椂鍐呮渶澶?娆?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鍙嶉鍥剧墖涓婁紶棰戠巼闄愬埗', 'argon');?></label></th>
<td>
<input type="number" name="argon_feedback_upload_limit" min="1" max="100" value="<?php echo get_option('argon_feedback_upload_limit', '20'); ?>" style="width:80px;"/> <?php _e('寮?, 'argon');?> /
<input type="number" name="argon_feedback_upload_period" min="60" max="86400" value="<?php echo get_option('argon_feedback_upload_period', '3600'); ?>" style="width:100px;"/> <?php _e('绉?, 'argon');?>
<p class="description"><?php _e('闄愬埗鍗曚釜鐢ㄦ埛鍦ㄦ寚瀹氭椂闂村唴涓婁紶鍥剧墖鐨勬暟閲忋€傞粯璁わ細1灏忔椂鍐呮渶澶?0寮?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('璇勮閫熺巼闄愬埗', 'argon');?></label></th>
<td>
<select name="argon_rate_limit_enable">
<?php $argon_rate_limit_enable = get_option('argon_rate_limit_enable', 'true'); ?>
<option value="false" <?php if ($argon_rate_limit_enable=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
<option value="true" <?php if ($argon_rate_limit_enable=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
</select>
<p class="description"><?php _e('鎸?IP 杩涜閫熺巼闄愬埗锛岄槻姝㈢煭鏃堕棿鍐呴绻佽瘎璁恒€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('閫熺巼绐楀彛锛堢锛?, 'argon');?></label></th>
<td>
<input type="number" name="argon_rate_limit_window" value="<?php echo esc_attr(get_option('argon_rate_limit_window', 300)); ?>" class="regular-text" min="30" step="1" />
<p class="description"><?php _e('缁熻绐楀彛闀垮害锛屽缓璁笉灏忎簬 30 绉掋€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('绐楀彛鍐呮渶澶ф鏁?, 'argon');?></label></th>
<td>
<input type="number" name="argon_rate_limit_max_count" value="<?php echo esc_attr(get_option('argon_rate_limit_max_count', 5)); ?>" class="regular-text" min="1" step="1" />
<p class="description"><?php _e('鍦ㄤ竴涓粺璁$獥鍙e唴鍏佽鐨勬渶澶ц瘎璁烘鏁般€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('涓ゆ鏈€灏忛棿闅旓紙绉掞級', 'argon');?></label></th>
<td>
<input type="number" name="argon_rate_limit_min_interval" value="<?php echo esc_attr(get_option('argon_rate_limit_min_interval', 10)); ?>" class="regular-text" min="0" step="1" />
<p class="description"><?php _e('涓ゆ璇勮涔嬮棿鐨勬渶鐭椂闂撮棿闅斻€?, 'argon');?></p>
</td>
</tr>
<!-- ========== 杩斿洖璇勮绯荤粺 ========== -->
<tr><th class="subtitle"><h3 id="subsection-comment-features"><?php _e('璇勮鍔熻兘', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鏄惁鍏佽鍦ㄨ瘎璁轰腑浣跨敤 Markdown 璇硶', 'argon');?></label></th>
<td>
<select name="argon_comment_allow_markdown">
<?php $argon_comment_allow_markdown = get_option('argon_comment_allow_markdown'); ?>
<option value="true" <?php if ($argon_comment_allow_markdown=='true'){echo 'selected';} ?>><?php _e('鍏佽', 'argon');?></option>
<option value="false" <?php if ($argon_comment_allow_markdown=='false'){echo 'selected';} ?>><?php _e('涓嶅厑璁?, 'argon');?></option>
</select>
<p class="description"></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏄惁鍏佽璇勮鑰呭啀娆$紪杈戣瘎璁?, 'argon');?></label></th>
<td>
<select name="argon_comment_allow_editing">
<?php $argon_comment_allow_editing = get_option('argon_comment_allow_editing'); ?>
<option value="true" <?php if ($argon_comment_allow_editing=='true'){echo 'selected';} ?>><?php _e('鍏佽', 'argon');?></option>
<option value="false" <?php if ($argon_comment_allow_editing=='false'){echo 'selected';} ?>><?php _e('涓嶅厑璁?, 'argon');?></option>
</select>
<p class="description"><?php _e('鍚屼竴涓瘎璁鸿€呭彲浠ュ啀娆$紪杈戣瘎璁恒€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏄惁鍏佽璇勮鑰呬娇鐢ㄦ倓鎮勮瘽妯″紡', 'argon');?></label></th>
<td>
<select name="argon_comment_allow_privatemode">
<?php $argon_comment_allow_privatemode = get_option('argon_comment_allow_privatemode'); ?>
<option value="false" <?php if ($argon_comment_allow_privatemode=='false'){echo 'selected';} ?>><?php _e('涓嶅厑璁?, 'argon');?></option>
<option value="true" <?php if ($argon_comment_allow_privatemode=='true'){echo 'selected';} ?>><?php _e('鍏佽', 'argon');?></option>
</select>
<p class="description"><?php _e('璇勮鑰呬娇鐢ㄦ倓鎮勮瘽妯″紡鍙戦€佺殑璇勮鍜屽叾涓嬬殑鎵€鏈夊洖澶嶅彧鏈夊彂閫佽€呭拰鍗氫富鑳界湅鍒般€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏄惁鍏佽璇勮鑰呮帴鏀惰瘎璁哄洖澶嶉偖浠舵彁閱?, 'argon');?></label></th>
<td>
<select name="argon_comment_allow_mailnotice">
<?php $argon_comment_allow_mailnotice = get_option('argon_comment_allow_mailnotice'); ?>
<option value="false" <?php if ($argon_comment_allow_mailnotice=='false'){echo 'selected';} ?>><?php _e('涓嶅厑璁?, 'argon');?></option>
<option value="true" <?php if ($argon_comment_allow_mailnotice=='true'){echo 'selected';} ?>><?php _e('鍏佽', 'argon');?></option>
</select>
<div style="margin-top: 15px;margin-bottom: 15px;">
<label>
<?php $argon_comment_mailnotice_checkbox_checked = get_option('argon_comment_mailnotice_checkbox_checked');?>
<input type="checkbox" name="argon_comment_mailnotice_checkbox_checked" value="true" <?php if ($argon_comment_mailnotice_checkbox_checked=='true'){echo 'checked';}?>/> <?php _e('璇勮鏃堕粯璁ゅ嬀閫?"鍚敤閭欢閫氱煡" 澶嶉€夋', 'argon');?>
</label>
</div>
<p class="description"><?php _e('璇勮鑰呭紑鍚偖浠舵彁閱掑悗锛屽叾璇勮鏈夊洖澶嶆椂浼氭湁閭欢閫氱煡銆?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鍏佽璇勮鑰呬娇鐢?QQ 澶村儚', 'argon');?></label></th>
<td>
<select name="argon_comment_enable_qq_avatar">
<?php $argon_comment_enable_qq_avatar = get_option('argon_comment_enable_qq_avatar'); ?>
<option value="false" <?php if ($argon_comment_enable_qq_avatar=='false'){echo 'selected';} ?>><?php _e('涓嶅厑璁?, 'argon');?></option>
<option value="true" <?php if ($argon_comment_enable_qq_avatar=='true'){echo 'selected';} ?>><?php _e('鍏佽', 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗锛岃瘎璁鸿€呭彲浠ヤ娇鐢?QQ 鍙蜂唬鏇块偖绠辫緭鍏ワ紝澶村儚浼氭牴鎹瘎璁鸿€呯殑 QQ 鍙疯幏鍙栥€?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-comment-spam-detection"><?php _e('AI 鍨冨溇璇勮璇嗗埆', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鍚敤 AI 鍨冨溇璇勮璇嗗埆', 'argon');?></label></th>
<td>
<?php $argon_comment_spam_detection_enable = get_option('argon_comment_spam_detection_enable', 'false'); ?>
<label>
<input type="checkbox" name="argon_comment_spam_detection_enable" value="true" <?php if ($argon_comment_spam_detection_enable=='true'){echo 'checked';}?>/>
<?php _e('鍚敤 AI 鑷姩璇嗗埆鍨冨溇璇勮', 'argon');?>
</label>
<p class="description"><?php _e('寮€鍚悗锛屽皢浣跨敤 AI 鑷姩璇嗗埆骞垮憡銆佸弽鍔ㄣ€佽繚娉曠瓑鍨冨溇璇勮銆?, 'argon');?><br/><?php _e('娉ㄦ剰锛氶渶瑕佸厛鍦?"鏂囩珷鍔熻兘 - AI 鏂囩珷鎽樿" 涓厤缃?AI 鏈嶅姟鍟嗗拰 API 瀵嗛挜銆?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('瀹炴椂妫€娴嬫ā寮?, 'argon');?></label></th>
<td>
<select name="argon_comment_spam_detection_mode">
<?php $argon_comment_spam_detection_mode = get_option('argon_comment_spam_detection_mode', 'manual'); ?>
<option value="manual" <?php if ($argon_comment_spam_detection_mode=='manual'){echo 'selected';} ?>><?php _e('鍏抽棴瀹炴椂妫€娴?, 'argon');?></option>
<option value="sample" <?php if ($argon_comment_spam_detection_mode=='sample'){echo 'selected';} ?>><?php _e('鏅鸿兘鎶芥煡锛堟帹鑽愶級', 'argon');?></option>
<option value="all" <?php if ($argon_comment_spam_detection_mode=='all'){echo 'selected';} ?>><?php _e('鍏ㄩ噺妫€娴?, 'argon');?></option>
</select>
<p class="description">
<strong><?php _e('鍏抽棴瀹炴椂妫€娴?, 'argon');?>锛?/strong><?php _e('鍙兘浣跨敤涓嬫柟鐨勬墜鍔ㄦ壒閲忔壂鎻?, 'argon');?><br/>
<strong><?php _e('鏅鸿兘鎶芥煡', 'argon');?>锛?/strong><?php _e('鏍规嵁鐢ㄦ埛淇¤獕鍔ㄦ€佽皟鏁存娴嬫鐜囷紝骞宠 鎴愭湰涓庢晥鏋?, 'argon');?><br/>
<strong><?php _e('鍏ㄩ噺妫€娴?, 'argon');?>锛?/strong><?php _e('姣忔潯鏂拌瘎璁洪兘妫€娴嬶紝闃叉姢鏈€涓ュ瘑浣?API 娑堣€楁渶楂?, 'argon');?>
</p>
</td>
</tr>
<tr>
<th><label><?php _e('鎶芥煡鍩虹姒傜巼', 'argon');?></label></th>
<td>
<input type="number" name="argon_comment_spam_detection_sample_rate" min="1" max="100" value="<?php echo get_option('argon_comment_spam_detection_sample_rate', '20'); ?>" style="width: 80px;"/> %
<p class="description">
<?php _e('鏅鸿兘鎶芥煡妯″紡鐨勫熀纭€姒傜巼锛岄粯璁?20%銆傜郴缁熶細鏍规嵁鐢ㄦ埛鍘嗗彶閫氳繃鐜囪嚜鍔ㄨ皟鏁达細', 'argon');?><br/>
<?php _e('鈥?淇¤獕濂界殑鐢ㄦ埛闄嶄綆妫€娴嬶紙鏈€浣?5%锛?, 'argon');?><br/>
<?php _e('鈥?淇¤獕宸殑鐢ㄦ埛鎻愰珮妫€娴嬶紙鏈€楂?80%锛?, 'argon');?>
</p>
</td>
</tr>
<tr>
<th><label><?php _e('鑷姩澶勭悊鏂瑰紡', 'argon');?></label></th>
<td>
<select name="argon_comment_spam_detection_auto_action">
<?php $argon_comment_spam_detection_auto_action = get_option('argon_comment_spam_detection_auto_action', 'trash'); ?>
<option value="trash" <?php if ($argon_comment_spam_detection_auto_action=='trash'){echo 'selected';} ?>><?php _e('鑷姩绉诲叆鍥炴敹绔?, 'argon');?></option>
<option value="hold" <?php if ($argon_comment_spam_detection_auto_action=='hold'){echo 'selected';} ?>><?php _e('鏍囪涓哄緟瀹℃牳', 'argon');?></option>
<option value="mark" <?php if ($argon_comment_spam_detection_auto_action=='mark'){echo 'selected';} ?>><?php _e('浠呮爣璁颁笉澶勭悊', 'argon');?></option>
</select>
<p class="description">
<strong><?php _e('鑷姩绉诲叆鍥炴敹绔?, 'argon');?>锛?/strong><?php _e('妫€娴嬪埌鍨冨溇璇勮绔嬪嵆绉诲叆鍥炴敹绔欙紙鎺ㄨ崘锛?, 'argon');?><br/>
<strong><?php _e('鏍囪涓哄緟瀹℃牳', 'argon');?>锛?/strong><?php _e('灏嗗瀮鍦捐瘎璁虹姸鎬佹敼涓哄緟瀹℃牳锛岄渶瑕佺鐞嗗憳鎵嬪姩瀹℃牳', 'argon');?><br/>
<strong><?php _e('浠呮爣璁颁笉澶勭悊', 'argon');?>锛?/strong><?php _e('鍙湪璇勮鍏冩暟鎹腑鏍囪锛屼笉鏀瑰彉璇勮鐘舵€?, 'argon');?>
</p>
</td>
</tr>
<tr>
<th><label><?php _e('妫€娴嬭寖鍥?, 'argon');?></label></th>
<td>
<?php $argon_comment_spam_detection_exclude_logged_in = get_option('argon_comment_spam_detection_exclude_logged_in', 'true'); ?>
<label style="display: block; margin-bottom: 8px;">
<input type="checkbox" name="argon_comment_spam_detection_exclude_logged_in" value="true" <?php if ($argon_comment_spam_detection_exclude_logged_in=='true'){echo 'checked';}?>/>
<?php _e('璺宠繃宸茬櫥褰曠敤鎴风殑璇勮', 'argon');?>
</label>
<p class="description"><?php _e('寮€鍚悗锛屽凡鐧诲綍鐢ㄦ埛锛堝寘鎷鐞嗗憳銆佺紪杈戠瓑锛夌殑璇勮涓嶄細琚娴嬨€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鐧藉悕鍗?, 'argon');?></label></th>
<td>
<textarea rows="4" cols="70" name="argon_comment_spam_detection_whitelist" placeholder="<?php _e('姣忚涓€涓偖绠辨垨 IP 鍦板潃', 'argon');?>"><?php echo get_option('argon_comment_spam_detection_whitelist', ''); ?></textarea>
<p class="description">
<?php _e('鐧藉悕鍗曚腑鐨勯偖绠辨垨 IP 鍦板潃鐨勮瘎璁轰笉浼氳妫€娴嬶紝姣忚涓€涓€?, 'argon');?><br/>
<?php _e('绀轰緥锛歶ser@example.com 鎴?192.168.1.1', 'argon');?>
</p>
</td>
</tr>
<tr>
<th><label><?php _e('Prompt 妯″紡', 'argon');?></label></th>
<td>
<select name="argon_comment_spam_detection_prompt_mode">
<?php $prompt_mode = get_option('argon_comment_spam_detection_prompt_mode', 'standard'); ?>
<option value="minimal" <?php if ($prompt_mode=='minimal'){echo 'selected';} ?>><?php _e('鏋佺畝妯″紡', 'argon');?></option>
<option value="standard" <?php if ($prompt_mode=='standard'){echo 'selected';} ?>><?php _e('鏍囧噯妯″紡锛堟帹鑽愶級', 'argon');?></option>
<option value="enhanced" <?php if ($prompt_mode=='enhanced'){echo 'selected';} ?>><?php _e('澧炲己妯″紡', 'argon');?></option>
<option value="custom" <?php if ($prompt_mode=='custom'){echo 'selected';} ?>><?php _e('鑷畾涔?Prompt', 'argon');?></option>
</select>
<p class="description">
<strong><?php _e('鏋佺畝妯″紡', 'argon');?></strong>: <?php _e('鐪?token锛屽揩閫熸娴嬶紝鐞嗙敱绠€鐭紙绾?100-150 tokens锛?, 'argon');?><br/>
<strong><?php _e('鏍囧噯妯″紡', 'argon');?></strong>: <?php _e('骞宠 鍑嗙‘鎬у拰鎴愭湰锛屽寘鍚疆淇″害鍜屽鐞嗗缓璁紙绾?200-300 tokens锛?, 'argon');?><br/>
<strong><?php _e('澧炲己妯″紡', 'argon');?></strong>: <?php _e('澶氱淮搴﹀垎鏋愶紝鏇村噯纭紝鍖呭惈缁煎悎鍒嗘瀽锛堢害 300-500 tokens锛?, 'argon');?><br/>
<strong><?php _e('鑷畾涔?Prompt', 'argon');?></strong>: <?php _e('浣跨敤涓嬫柟鑷畾涔夌殑 Prompt', 'argon');?>
</p>
</td>
</tr>
<tr>
<th><label><?php _e('鑷姩澶勭悊闃堝€?, 'argon');?></label></th>
<td>
<label style="display: block; margin-bottom: 8px;">
<?php _e('缃俊搴﹂槇鍊?, 'argon');?>:
<input type="number" name="argon_comment_spam_detection_confidence_threshold" min="0" max="100" step="5" value="<?php echo get_option('argon_comment_spam_detection_confidence_threshold', '85'); ?>" style="width: 80px;"/> %
</label>
<p class="description">
<?php _e('鍙湁 AI 鍒ゆ柇鐨勭疆淇″害楂樹簬姝ら槇鍊兼椂锛屾墠浼氳嚜鍔ㄥ鐞嗗瀮鍦捐瘎璁恒€?, 'argon');?><br/>
<?php _e('寤鸿鍊硷細灏忓瀷鍗氬 90%锛屼腑鍨嬪崥瀹?85%锛屽ぇ鍨嬪崥瀹?80%', 'argon');?><br/>
<?php _e('缃俊搴︿綆浜庨槇鍊肩殑璇勮浼氳鏍囪涓哄緟瀹℃牳锛岀敱绠$悊鍛樹汉宸ュ垽鏂?, 'argon');?>
</p>
</td>
</tr>
<tr>
<th><label><?php _e('妫€娴嬫彁绀鸿瘝', 'argon');?></label></th>
<td>
<select id="argon-spam-prompt-template" style="margin-bottom: 10px;">
<option value=""><?php _e('閫夋嫨棰勮妯℃澘...', 'argon');?></option>
<option value="default"><?php _e('榛樿妯℃澘锛堝钩琛★級', 'argon');?></option>
<option value="strict"><?php _e('涓ユ牸妯″紡', 'argon');?></option>
<option value="loose"><?php _e('瀹芥澗妯″紡', 'argon');?></option>
<option value="minimal"><?php _e('鏋佺畝妯″紡锛堢渷 token锛?, 'argon');?></option>
</select>
<textarea rows="6" cols="70" id="argon-spam-prompt-textarea" name="argon_comment_spam_detection_prompt"><?php echo get_option('argon_comment_spam_detection_prompt', '浣犳槸涓€涓笓涓氱殑鍐呭瀹℃牳鍔╂墜銆傝鍒ゆ柇浠ヤ笅璇勮鏄惁涓哄瀮鍦捐瘎璁恒€傚瀮鍦捐瘎璁哄寘鎷絾涓嶉檺浜庯細骞垮憡鎺ㄥ箍銆佸弽鍔ㄨ█璁恒€侀敊璇斂娌昏鐐广€佹椂鏀挎晱鎰熷唴瀹广€佽繚娉曚俊鎭€佽壊鎯呮毚鍔涖€佹伓鎰忔敾鍑荤瓑銆?
璇蜂粎杩斿洖 JSON 鏍煎紡锛歿"is_spam": true/false, "reason": "鐞嗙敱(25瀛椾互鍐?"}
濡傛灉鏄甯歌瘎璁猴紝reason 濉啓 "姝e父"銆傚鏋滄槸鍨冨溇璇勮锛岀畝瑕佽鏄庡師鍥犮€?); ?></textarea>
<p class="description"><?php _e('鑷畾涔?AI 璇嗗埆鍨冨溇璇勮鏃朵娇鐢ㄧ殑鎻愮ず璇嶃€傚缓璁繚鎸佺畝娲佷互闄嶄綆 token 娑堣€椼€?, 'argon');?></p>
<script>
jQuery(document).ready(function($) {
const templates = {
'default': '浣犳槸涓€涓笓涓氱殑鍐呭瀹℃牳鍔╂墜銆傝鍒ゆ柇浠ヤ笅璇勮鏄惁涓哄瀮鍦捐瘎璁恒€傚瀮鍦捐瘎璁哄寘鎷絾涓嶉檺浜庯細骞垮憡鎺ㄥ箍銆佸弽鍔ㄨ█璁恒€侀敊璇斂娌昏鐐广€佹椂鏀挎晱鎰熷唴瀹广€佽繚娉曚俊鎭€佽壊鎯呮毚鍔涖€佹伓鎰忔敾鍑荤瓑銆俓n\n璇蜂粎杩斿洖 JSON 鏍煎紡锛歿"is_spam": true/false, "reason": "鐞嗙敱(25瀛椾互鍐?"}\n\n濡傛灉鏄甯歌瘎璁猴紝reason 濉啓 "姝e父"銆傚鏋滄槸鍨冨溇璇勮锛岀畝瑕佽鏄庡師鍥犮€?,
'strict': '浣犳槸涓ユ牸鐨勫唴瀹瑰鏍稿姪鎵嬨€傚垽鏂瘎璁烘槸鍚︿负鍨冨溇璇勮锛屽寘鎷細骞垮憡銆佹帹骞裤€佽惀閿€銆佸弽鍔ㄣ€佹斂娌绘晱鎰熴€佽繚娉曘€佽壊鎯呫€佹毚鍔涖€佹伓鎰忔敾鍑汇€佹棤鎰忎箟鐏屾按銆侀噸澶嶅唴瀹圭瓑銆俓n\n杩斿洖 JSON锛歿"is_spam": true/false, "reason": "鐞嗙敱(25瀛楀唴)"}\n\n鏈変换浣曞彲鐤戣抗璞¢兘鏍囪涓哄瀮鍦俱€?,
'loose': '鍒ゆ柇璇勮鏄惁涓烘槑鏄剧殑鍨冨溇璇勮锛氬箍鍛婃帹骞裤€佽繚娉曞唴瀹广€佽壊鎯呮毚鍔涖€俓n\n杩斿洖 JSON锛歿"is_spam": true/false, "reason": "鐞嗙敱(25瀛楀唴)"}\n\n鍙爣璁版槑鏄剧殑鍨冨溇璇勮锛屽姝父璁ㄨ淇濇寔瀹藉銆?,
'minimal': '鍒ゆ柇鏄惁鍨冨溇璇勮锛堝箍鍛?杩濇硶/鑹叉儏/鏆村姏锛夈€傝繑鍥烇細{"is_spam": true/false, "reason": "鐞嗙敱(20瀛楀唴)"}'
};
$('#argon-spam-prompt-template').on('change', function() {
const template = $(this).val();
if (template && templates[template]) {
$('#argon-spam-prompt-textarea').val(templates[template]);
}
});
});
</script>
</td>
</tr>
<tr>
<th><label><?php _e('鎵嬪姩鎵归噺妫€娴?, 'argon');?></label></th>
<td>
<div style="margin-bottom: 15px;">
<button type="button" class="button button-primary" id="argon-spam-detection-scan-all"><?php _e('鍏ㄧ珯璇勮鎵弿', 'argon');?></button>
<button type="button" class="button" id="argon-spam-detection-scan-pending" style="margin-left: 10px;"><?php _e('浠呮壂鎻忓緟瀹℃牳璇勮', 'argon');?></button>
<span id="argon-spam-detection-status" style="margin-left: 15px; color: #666;"></span>
</div>
<div id="argon-spam-detection-progress" style="display: none; margin-bottom: 15px;">
<div style="background: #f0f0f1; border-radius: 4px; height: 24px; position: relative; overflow: hidden;">
<div id="argon-spam-detection-progress-bar" style="background: var(--themecolor, #5e72e4); height: 100%; width: 0%; transition: width 0.3s;"></div>
<span id="argon-spam-detection-progress-text" style="position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 12px; font-weight: 600; color: #333;"></span>
</div>
</div>
<div id="argon-spam-detection-results" style="display: none; margin-top: 15px; padding: 15px; background: #fff; border: 1px solid #ddd; border-radius: 4px; max-height: 400px; overflow-y: auto;">
<div id="argon-spam-detection-results-content"></div>
</div>
<p class="description">
<?php _e('鎵嬪姩鎵弿鐜版湁璇勮锛岃瘑鍒瀮鍦捐瘎璁恒€傛壂鎻忎笉鍖呮嫭宸插湪鍥炴敹绔欑殑璇勮銆?, 'argon');?><br/>
<?php _e('妫€娴嬪埌鐨勫瀮鍦捐瘎璁轰細琚爣璁帮紝鎮ㄥ彲浠ラ€夋嫨鎬у湴绉诲叆鍥炴敹绔欍€?, 'argon');?>
</p>
<script>
jQuery(document).ready(function($) {
let isScanning = false;
function startScan(scanType) {
if (isScanning) {
alert('<?php _e('姝e湪鎵弿涓紝璇风◢鍊?, 'argon');?>');
return;
}
if (!confirm('<?php _e('纭畾瑕佸紑濮嬫壂鎻忓悧锛熻繖灏嗕竴娆℃€ф娴嬫墍鏈夎瘎璁猴紝鍙兘闇€瑕佽緝闀挎椂闂淬€?, 'argon');?>')) {
return;
}
isScanning = true;
$('#argon-spam-detection-scan-all, #argon-spam-detection-scan-pending').prop('disabled', true);
$('#argon-spam-detection-status').text('<?php _e('姝e湪鎵弿...璇疯€愬績绛夊緟', 'argon');?>');
$('#argon-spam-detection-progress').show();
$('#argon-spam-detection-results').hide();
$('#argon-spam-detection-progress-bar').css('width', '50%');
$('#argon-spam-detection-progress-text').text('<?php _e('澶勭悊涓?..', 'argon');?>');
$.post(ajaxurl, {
action: 'argon_spam_detection_scan',
nonce: '<?php echo wp_create_nonce('argon_spam_detection_scan'); ?>',
scan_type: scanType
}, function(response) {
isScanning = false;
$('#argon-spam-detection-scan-all, #argon-spam-detection-scan-pending').prop('disabled', false);
$('#argon-spam-detection-progress-bar').css('width', '100%');
$('#argon-spam-detection-progress-text').text('100%');
if (response.success) {
const data = response.data;
$('#argon-spam-detection-status').text('<?php _e('鎵弿瀹屾垚', 'argon');?> - <?php _e('鍏辨娴?, 'argon');?> ' + data.total + ' <?php _e('鏉¤瘎璁?, 'argon');?>');
displayResults(data.results);
} else {
$('#argon-spam-detection-status').text('<?php _e('鎵弿澶辫触', 'argon');?>: ' + (response.data || ''));
$('#argon-spam-detection-progress').hide();
}
}).fail(function(xhr, status, error) {
isScanning = false;
$('#argon-spam-detection-scan-all, #argon-spam-detection-scan-pending').prop('disabled', false);
$('#argon-spam-detection-status').text('<?php _e('璇锋眰澶辫触', 'argon');?>: ' + error);
$('#argon-spam-detection-progress').hide();
});
}
function displayResults(results) {
if (!results || results.length === 0) {
$('#argon-spam-detection-results-content').html('<p style="color: #46b450; font-weight: 600;"><span class="dashicons dashicons-yes-alt" style="font-size: 20px; vertical-align: middle;"></span> <?php _e('鏈彂鐜板瀮鍦捐瘎璁猴紝鎵€鏈夎瘎璁洪兘鏄甯哥殑锛?, 'argon');?></p>');
$('#argon-spam-detection-results').show();
return;
}
let html = '<p style="color: #dc3232; font-weight: 600; margin-bottom: 15px;"><span class="dashicons dashicons-warning" style="font-size: 20px; vertical-align: middle;"></span> <?php _e('鍙戠幇', 'argon');?> ' + results.length + ' <?php _e('鏉$枒浼煎瀮鍦捐瘎璁?, 'argon');?></p>';
html += '<table class="wp-list-table widefat fixed striped" style="margin-top: 10px;"><thead><tr><th style="width: 80px;"><?php _e('璇勮 ID', 'argon');?></th><th style="width: 120px;"><?php _e('浣滆€?, 'argon');?></th><th><?php _e('鍐呭', 'argon');?></th><th style="width: 150px;"><?php _e('璇嗗埆鐞嗙敱', 'argon');?></th><th style="width: 100px;"><?php _e('鎿嶄綔', 'argon');?></th></tr></thead><tbody>';
results.forEach(function(item) {
html += '<tr data-comment-id="' + item.comment_id + '">';
html += '<td>' + item.comment_id + '</td>';
html += '<td>' + $('<div>').text(item.author).html() + '</td>';
html += '<td style="max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;" title="' + $('<div>').text(item.content).html() + '">' + $('<div>').text(item.content).html() + '</td>';
html += '<td>' + $('<div>').text(item.reason).html() + '</td>';
html += '<td><button type="button" class="button button-small argon-spam-trash-btn" data-comment-id="' + item.comment_id + '"><?php _e('绉诲叆鍥炴敹绔?, 'argon');?></button></td>';
html += '</tr>';
});
html += '</tbody></table>';
$('#argon-spam-detection-results-content').html(html);
$('#argon-spam-detection-results').show();
}
$(document).on('click', '.argon-spam-trash-btn', function() {
const btn = $(this);
const commentId = btn.data('comment-id');
if (!confirm('<?php _e('纭畾瑕佸皢姝よ瘎璁虹Щ鍏ュ洖鏀剁珯鍚楋紵', 'argon');?>')) {
return;
}
btn.prop('disabled', true).text('<?php _e('澶勭悊涓?..', 'argon');?>');
$.post(ajaxurl, {
action: 'argon_spam_detection_trash_comment',
nonce: '<?php echo wp_create_nonce('argon_spam_detection_trash_comment'); ?>',
comment_id: commentId
}, function(response) {
if (response.success) {
btn.closest('tr').fadeOut(300, function() {
$(this).remove();
if ($('#argon-spam-detection-results-content tbody tr').length === 0) {
$('#argon-spam-detection-results-content').html('<p style="color: #46b450; font-weight: 600;"><span class="dashicons dashicons-yes-alt" style="font-size: 20px; vertical-align: middle;"></span> <?php _e('鎵€鏈夋爣璁扮殑鍨冨溇璇勮宸插鐞?, 'argon');?></p>');
}
});
} else {
alert('<?php _e('鎿嶄綔澶辫触', 'argon');?>: ' + (response.data || ''));
btn.prop('disabled', false).text('<?php _e('绉诲叆鍥炴敹绔?, 'argon');?>');
}
});
});
$('#argon-spam-detection-scan-all').on('click', function() {
startScan('all');
});
$('#argon-spam-detection-scan-pending').on('click', function() {
startScan('pending');
});
});
</script>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-comment-appearance"><?php _e('璇勮鍖哄瑙?, 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('璇勮澶村儚鍨傜洿浣嶇疆', 'argon');?></label></th>
<td>
<select name="argon_comment_avatar_vcenter">
<?php $argon_comment_avatar_vcenter = get_option('argon_comment_avatar_vcenter'); ?>
<option value="false" <?php if ($argon_comment_avatar_vcenter=='false'){echo 'selected';} ?>><?php _e('灞呬笂', 'argon');?></option>
<option value="true" <?php if ($argon_comment_avatar_vcenter=='true'){echo 'selected';} ?>><?php _e('灞呬腑', 'argon');?></option>
</select>
<p class="description"></p>
</td>
</tr>
<tr>
<th><label><?php _e('璋佸彲浠ユ煡鐪嬭瘎璁虹紪杈戣褰?, 'argon');?></label></th>
<td>
<select name="argon_who_can_visit_comment_edit_history">
<?php $argon_who_can_visit_comment_edit_history = get_option('argon_who_can_visit_comment_edit_history'); ?>
<option value="admin" <?php if ($argon_who_can_visit_comment_edit_history=='admin'){echo 'selected';} ?>><?php _e('鍙湁鍗氫富', 'argon');?></option>
<option value="commentsender" <?php if ($argon_who_can_visit_comment_edit_history=='commentsender'){echo 'selected';} ?>><?php _e('璇勮鍙戦€佽€呭拰鍗氫富', 'argon');?></option>
<option value="everyone" <?php if ($argon_who_can_visit_comment_edit_history=='everyone'){echo 'selected';} ?>><?php _e('浠讳綍浜?, 'argon');?></option>
</select>
<p class="description"><?php _e('鐐瑰嚮璇勮鍙充晶鐨?"宸茬紪杈? 鏍囪鏉ユ煡鐪嬬紪杈戣褰?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('寮€鍚瘎璁虹疆椤跺姛鑳?, 'argon');?></label></th>
<td>
<select name="argon_enable_comment_pinning">
<?php $argon_enable_comment_pinning = get_option('argon_enable_comment_pinning'); ?>
<option value="false" <?php if ($argon_enable_comment_pinning=='false'){echo 'selected';} ?>><?php _e('鍏抽棴', 'argon');?></option>
<option value="true" <?php if ($argon_enable_comment_pinning=='true'){echo 'selected';} ?>><?php _e('寮€鍚?, 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗锛屽崥涓诲皢鍙互缃《璇勮銆傚凡缃《鐨勮瘎璁哄皢浼氬湪璇勮鍖洪《閮ㄦ樉绀恒€傚鏋滃叧闂紝璇勮灏嗕互姝e父椤哄簭鏄剧ず銆?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('璇勮鐐硅禐', 'argon');?></label></th>
<td>
<select name="argon_enable_comment_upvote">
<?php $argon_enable_comment_upvote = get_option('argon_enable_comment_upvote'); ?>
<option value="false" <?php if ($argon_enable_comment_upvote=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
<option value="true" <?php if ($argon_enable_comment_upvote=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗锛屾瘡涓€鏉¤瘎璁虹殑澶村儚涓嬫柟浼氬嚭鐜扮偣璧炴寜閽?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('璇勮鑰?UA 鏄剧ず', 'argon');?></label></th>
<td>
<select name="argon_comment_ua">
<?php $argon_comment_ua = get_option('argon_comment_ua'); ?>
<option value="hidden" <?php if ($argon_comment_ua=='hidden'){echo 'selected';} ?>><?php _e('涓嶆樉绀?, 'argon');?></option>
<option value="browser" <?php if ($argon_comment_ua=='browser'){echo 'selected';} ?>><?php _e('娴忚鍣?, 'argon');?></option>
<option value="browser,version" <?php if ($argon_comment_ua=='browser,version'){echo 'selected';} ?>><?php _e('娴忚鍣?鐗堟湰鍙?, 'argon');?></option>
<option value="platform,browser,version" <?php if ($argon_comment_ua=='platform,browser,version'){echo 'selected';} ?>><?php _e('骞冲彴+娴忚鍣?鐗堟湰鍙?, 'argon');?></option>
<option value="platform,browser" <?php if ($argon_comment_ua=='platform,browser'){echo 'selected';} ?>><?php _e('骞冲彴+娴忚鍣?, 'argon');?></option>
<option value="platform" <?php if ($argon_comment_ua=='platform'){echo 'selected';} ?>><?php _e('骞冲彴', 'argon');?></option>
</select>
<p class="description"><?php _e('璁剧疆鏄惁鍦ㄨ瘎璁哄尯鏄剧ず璇勮鑰?UA 鍙婃樉绀哄摢浜涢儴鍒?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鍦ㄥ瓙璇勮涓樉绀鸿鍥炲鑰呯敤鎴峰悕', 'argon');?></label></th>
<td>
<select name="argon_show_comment_parent_info">
<?php $argon_show_comment_parent_info = get_option('argon_show_comment_parent_info'); ?>
<option value="true" <?php if ($argon_show_comment_parent_info=='true'){echo 'selected';} ?>><?php _e('鏄剧ず', 'argon');?></option>
<option value="false" <?php if ($argon_show_comment_parent_info=='false'){echo 'selected';} ?>><?php _e('涓嶆樉绀?, 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗锛岃鍥炲鐨勮瘎璁鸿€呮樀绉颁細鏄剧ず鍦ㄥ瓙璇勮涓紝榧犳爣绉讳笂鍚庝細楂樹寒琚洖澶嶇殑璇勮', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鎶樺彔杩囬暱璇勮', 'argon');?></label></th>
<td>
<select name="argon_fold_long_comments">
<?php $argon_fold_long_comments = get_option('argon_fold_long_comments'); ?>
<option value="false" <?php if ($argon_fold_long_comments=='false'){echo 'selected';} ?>><?php _e('涓嶆姌鍙?, 'argon');?></option>
<option value="true" <?php if ($argon_fold_long_comments=='true'){echo 'selected';} ?>><?php _e('鎶樺彔', 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗锛岃繃闀跨殑璇勮浼氳鎶樺彔锛岄渶瑕佹墜鍔ㄥ睍寮€', 'argon');?></p>
</td>
</tr>
<tr>
<th><label>Gravatar CDN</label></th>
<td>
<input type="text" class="regular-text" name="argon_gravatar_cdn" value="<?php echo get_option('argon_gravatar_cdn' , ''); ?>"/>
<p class="description"><?php _e('浣跨敤 CDN 鏉ュ姞閫?Gravatar 鍦ㄦ煇浜涘湴鍖虹殑璁块棶锛屽~鍐?CDN 鍦板潃锛岀暀绌哄垯涓嶄娇鐢ㄣ€?, 'argon');?><br/><?php _e('鍦ㄤ腑鍥介€熷害杈冨揩鐨勪竴浜?CDN :', 'argon');?><code onclick="$('input[name=\'argon_gravatar_cdn\']').val(this.innerText);" style="cursor: pointer;">gravatar.pho.ink/avatar/</code> , <code onclick="$('input[name=\'argon_gravatar_cdn\']').val(this.innerText);" style="cursor: pointer;">cdn.v2ex.com/gravatar/</code> , <code onclick="$('input[name=\'argon_gravatar_cdn\']').val(this.innerText);" style="cursor: pointer;">dn-qiniu-avatar.qbox.me/avatar/</code></p>
</td>
</tr>
<tr>
<th><label><?php _e('璇勮鏂囧瓧澶村儚', 'argon');?></label></th>
<td>
<select name="argon_text_gravatar">
<?php $argon_text_gravatar = get_option('argon_text_gravatar'); ?>
<option value="false" <?php if ($argon_text_gravatar=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
<option value="true" <?php if ($argon_text_gravatar=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
</select>
<p class="description"><?php _e('鍦ㄨ瘎璁鸿€呮病鏈夎缃?Gravatar 鏃惰嚜鍔ㄧ敓鎴愭枃瀛楀ご鍍忥紝澶村儚棰滆壊鐢遍偖绠卞搱甯岃绠椼€傜敓鎴愭椂浼氬湪 Console 涓姏鍑?404 閿欒锛屼絾娌℃湁褰卞搷銆?, 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-search"><?php _e('鎼滅储', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('鍚敤杩囨护鍣?, 'argon');?></label></th>
<td>
<select name="argon_enable_search_filters">
<?php $argon_enable_search_filters = get_option('argon_enable_search_filters', 'true'); ?>
<option value="true" <?php if ($argon_enable_search_filters=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="false" <?php if ($argon_enable_search_filters=='false'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗锛屽皢浼氬湪鎼滅储缁撴灉鐣岄潰鏄剧ず涓€涓繃婊ゅ櫒锛屾敮鎸佹悳绱㈣璇村強鍏朵粬绫诲瀷鏂囩珷', 'argon');?></p>
</td>
</tr>
<script>
$("select[name='argon_enable_search_filters']").change(function(){
if ($(this).val() == 'true') {
$(".argon-search-filters-type").css('display', '');
} else {
$(".argon-search-filters-type").css('display', 'none');
}
}).change();
</script>
<tr class="argon-search-filters-type">
<th><label><?php _e('杩囨护鍣ㄧ被鍨?, 'argon');?></label></th>
<style>
.search-filters-container {
margin-top: 10px;
margin-bottom: 15px;
width: calc(100% - 250px);
}
@media screen and (max-width:960px){
.search-filters-container {
width: 100%;
}
}
#search_filters_active, #search_filters_inactive {
background: rgba(0, 0, 0, .05);
padding: 10px 15px;
margin-top: 10px;
border-radius: 5px;
padding-bottom: 0;
min-height: 48px;
box-sizing: border-box;
}
.search-filter-item {
background: #fafafa;
width: max-content !important;
height: max-content !important;
border-radius: 100px;
padding: 5px 15px;
cursor: move;
display: inline-block;
margin-right: 8px;
margin-bottom: 10px;
}
#search_filters_active .search-filter-item:before {
content: '猬?';
}
#search_filters_active .search-filter-item.active:before {
content: '鈽戯笍 ';
}
</style>
<td>
<input type="text" class="regular-text" name="argon_search_filters_type" value="<?php echo get_option('argon_search_filters_type', '*post,*page,shuoshuo'); ?>" style="display: none;"/>
<?php _e('鎷栧姩鏉ヨ嚜瀹氫箟鍚敤鐨勮繃婊ゅ櫒锛屽崟鍑绘潵鍒囨崲榛樿鍕鹃€夌姸鎬?, 'argon');?>
<div class="search-filters-container">
<?php _e('鍚敤', 'argon');?>
<div id="search_filters_active"></div>
</div>
<div class="search-filters-container">
<?php _e('涓嶅惎鐢?, 'argon');?>
<div id="search_filters_inactive">
<?php
$all_post_types= get_post_types(array(
'public' => true,
), 'objects');
foreach ($all_post_types as $post_type) {
if ($post_type -> name == 'attachment'){
continue;
}
echo '<div class="search-filter-item" filter-name="'. $post_type -> name .'">'. $post_type -> label .'</div>';
}
?>
</div>
</div>
</td>
<script>
function updateSearchFilters(){
let searchFilters = "";
$("#search_filters_active .search-filter-item").each(function(index, item) {
if (index != 0){ searchFilters += ",";}
if ($(item).hasClass('active')){ searchFilters += "*"; }
searchFilters += item.getAttribute("filter-name");
});
$("input[name='argon_search_filters_type']").val(searchFilters);
}
!function(){
let searchFilters = $("input[name='argon_search_filters_type']").val().split(",");
for (let filter of searchFilters){
if (filter[0] == "*"){
$(".search-filter-item[filter-name='"+ filter.substring(1) +"']").addClass('active');
filter = filter.substring(1);
}
let itemDiv = $("#search_filters_inactive .search-filter-item[filter-name='"+ filter + "']");
$("#search_filters_active").append(itemDiv.prop("outerHTML"));
itemDiv.remove();
}
}();
$(document).on("click", "#search_filters_active .search-filter-item", function(){
$(this).toggleClass("active");
updateSearchFilters();
});
dragula(
[document.querySelector('#search_filters_active'), document.querySelector('#search_filters_inactive')],
{
direction: 'vertical'
}
).on('dragend', function(){
updateSearchFilters();
});
</script>
</tr>
<!-- ========== 閭欢妯℃澘璁剧疆 ========== -->
<tr><th class="subtitle"><h3 id="subsection-email-template"><?php _e('閭欢妯℃澘', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('閭欢涓婚鑹?, 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_email_theme_color" value="<?php echo esc_attr(get_option('argon_email_theme_color', '#5e72e4')); ?>" style="width: 100px;" />
<input type="color" value="<?php echo esc_attr(get_option('argon_email_theme_color', '#5e72e4')); ?>" onchange="document.querySelector('input[name=argon_email_theme_color]').value = this.value;" style="vertical-align: middle; cursor: pointer;" />
<p class="description"><?php _e('閭欢涓寜閽€侀摼鎺ュ拰寮鸿皟鑹茬殑棰滆壊', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('閭欢 Logo', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_email_logo_url" value="<?php echo esc_attr(get_option('argon_email_logo_url', '')); ?>" placeholder="https://example.com/logo.png" />
<button type="button" class="button" onclick="argonUploadEmailLogo();"><?php _e('涓婁紶鍥剧墖', 'argon');?></button>
<p class="description"><?php _e('閭欢椤电湁鏄剧ず鐨?Logo 鍥剧墖 URL锛岀暀绌哄垯鏄剧ず鍗氬鍚嶇О鏂囧瓧', 'argon');?></p>
<script>
function argonUploadEmailLogo() {
var mediaUploader = wp.media({
title: '<?php _e('閫夋嫨 Logo 鍥剧墖', 'argon');?>',
button: { text: '<?php _e('浣跨敤姝ゅ浘鐗?, 'argon');?>' },
multiple: false
});
mediaUploader.on('select', function() {
var attachment = mediaUploader.state().get('selection').first().toJSON();
document.querySelector('input[name=argon_email_logo_url]').value = attachment.url;
});
mediaUploader.open();
}
</script>
</td>
</tr>
<tr>
<th><label><?php _e('閭欢鏄剧ず鍚嶇О', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_email_blog_name" value="<?php echo esc_attr(get_option('argon_email_blog_name', '')); ?>" placeholder="<?php echo esc_attr(get_bloginfo('name')); ?>" />
<p class="description"><?php _e('閭欢涓樉绀虹殑鍗氬鍚嶇О锛岀暀绌哄垯浣跨敤绔欑偣鍚嶇О', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('椤佃剼鐗堟潈淇℃伅', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_email_footer_text" value="<?php echo esc_attr(get_option('argon_email_footer_text', '')); ?>" placeholder="漏 <?php echo date('Y'); ?> <?php echo esc_attr(get_bloginfo('name')); ?>. All rights reserved." />
<p class="description"><?php _e('閭欢椤佃剼鏄剧ず鐨勭増鏉冧俊鎭紝鐣欑┖鍒欎娇鐢ㄩ粯璁ゆ牸寮?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('绀句氦閾炬帴', 'argon');?></label></th>
<td>
<?php $social_links = get_option('argon_email_social_links', array()); ?>
<div style="margin-bottom: 8px;">
<label style="display: inline-block; width: 80px;">Twitter:</label>
<input type="text" name="argon_email_social_twitter" value="<?php echo esc_attr(isset($social_links['twitter']) ? $social_links['twitter'] : ''); ?>" placeholder="username" style="width: 300px;" />
</div>
<div style="margin-bottom: 8px;">
<label style="display: inline-block; width: 80px;">GitHub:</label>
<input type="text" name="argon_email_social_github" value="<?php echo esc_attr(isset($social_links['github']) ? $social_links['github'] : ''); ?>" placeholder="username" style="width: 300px;" />
</div>
<div style="margin-bottom: 8px;">
<label style="display: inline-block; width: 80px;"><?php _e('寰崥', 'argon');?>:</label>
<input type="text" name="argon_email_social_weibo" value="<?php echo esc_attr(isset($social_links['weibo']) ? $social_links['weibo'] : ''); ?>" placeholder="username" style="width: 300px;" />
</div>
<div style="margin-bottom: 8px;">
<label style="display: inline-block; width: 80px;">Bilibili:</label>
<input type="text" name="argon_email_social_bilibili" value="<?php echo esc_attr(isset($social_links['bilibili']) ? $social_links['bilibili'] : ''); ?>" placeholder="UID" style="width: 300px;" />
</div>
<p class="description"><?php _e('閭欢椤佃剼鏄剧ず鐨勭ぞ浜ら摼鎺ワ紝鐣欑┖鍒欎笉鏄剧ず銆傛敮鎸佸~鍐欏畬鏁?URL 鎴栦粎濉啓鐢ㄦ埛鍚?UID锛堝皢鑷姩琛ュ叏涓哄畬鏁撮摼鎺ワ級', 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-email-templates-custom"><?php _e('閭欢鍐呭妯℃澘', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('妯℃澘缂栬緫', 'argon');?></label></th>
<td>
<?php
$email_types = argon_get_email_types();
?>
<div class="argon-email-template-editor">
<div style="margin-bottom: 16px;">
<label><?php _e('閫夋嫨閭欢绫诲瀷', 'argon');?>锛?/label>
<select id="argon_email_template_type" onchange="argonSwitchEmailTemplate(this.value);" style="min-width: 200px;">
<?php foreach ($email_types as $type_key => $type_info): ?>
<option value="<?php echo esc_attr($type_key); ?>"><?php echo esc_html($type_info['name']); ?></option>
<?php endforeach; ?>
</select>
<span id="argon_email_template_desc" style="color: #666; margin-left: 10px;"><?php echo esc_html(reset($email_types)['description']); ?></span>
</div>
<?php foreach ($email_types as $type_key => $type_info):
$config = argon_get_email_template_config($type_key);
?>
<div id="argon_email_template_<?php echo esc_attr($type_key); ?>" class="argon-email-template-panel" style="<?php echo $type_key !== 'comment_notify' ? 'display:none;' : ''; ?>">
<div style="margin-bottom: 16px;">
<label>
<?php $enabled = get_option('argon_email_template_' . $type_key . '_enabled', 'true'); ?>
<input type="checkbox" name="argon_email_template_<?php echo esc_attr($type_key); ?>_enabled" value="true" <?php if ($enabled === 'true') echo 'checked'; ?> />
<?php _e('鍚敤姝ょ被鍨嬮偖浠?, 'argon'); ?>
</label>
</div>
<div style="margin-bottom: 16px;">
<label style="display: block; margin-bottom: 4px; font-weight: 500;"><?php _e('閭欢涓婚', 'argon');?>锛?/label>
<input type="text" name="argon_email_template_<?php echo esc_attr($type_key); ?>_subject"
value="<?php echo esc_attr(get_option('argon_email_template_' . $type_key . '_subject', '')); ?>"
placeholder="<?php printf(__('榛樿锛?s', 'argon'), esc_attr($config['default_subject'])); ?>"
style="width: 100%;" />
<p class="description"><?php _e('鐣欑┖鍒欎娇鐢ㄩ粯璁や富棰?, 'argon');?></p>
</div>
<div style="margin-bottom: 16px;">
<label style="display: block; margin-bottom: 4px; font-weight: 500;"><?php _e('閭欢鍐呭', 'argon');?>锛?/label>
<textarea name="argon_email_template_<?php echo esc_attr($type_key); ?>_content"
placeholder="<?php _e('鐣欑┖鍒欎娇鐢ㄩ粯璁ゆā鏉裤€傛敮鎸?HTML 鏍囩锛屽彲浣跨敤涓嬫柟鍗犱綅绗?, 'argon'); ?>"><?php echo esc_textarea(get_option('argon_email_template_' . $type_key . '_content', '')); ?></textarea>
<p class="description"><?php _e('鏀寔 HTML 鏍囩锛屽彲浣跨敤涓嬫柟鍗犱綅绗﹁嚜瀹氫箟閭欢鍐呭', 'argon');?></p>
</div>
<div style="margin-bottom: 16px;">
<label style="display: block; margin-bottom: 8px; font-weight: 500;"><?php _e('鍙敤鍗犱綅绗?, 'argon');?>锛?/label>
<div style="background: #f6f7f7; padding: 12px; border-radius: 4px; display: flex; flex-wrap: wrap; gap: 8px;">
<?php foreach ($config['placeholders'] as $placeholder => $desc): ?>
<code style="background: #fff; padding: 4px 8px; border-radius: 3px; cursor: pointer; border: 1px solid #ddd; display: inline-flex; align-items: center;"
onclick="argonInsertPlaceholder('argon_email_template_<?php echo esc_attr($type_key); ?>_content', '{{<?php echo esc_attr($placeholder); ?>}}')"
title="<?php _e('鐐瑰嚮鎻掑叆', 'argon'); ?>: <?php echo esc_attr($desc); ?>">
<span style="color: #d63384;">{{<?php echo esc_html($placeholder); ?>}}</span>
<span style="color: #6c757d; font-size: 11px; margin-left: 4px;">- <?php echo esc_html($desc); ?></span>
</code>
<?php endforeach; ?>
</div>
<p class="description" style="margin-top: 8px;"><?php _e('鐐瑰嚮鍗犱綅绗﹀彲鎻掑叆鍒板唴瀹圭紪杈戞涓紝鍗犱綅绗︿細鍦ㄥ彂閫佹椂琚浛鎹负瀹為檯鏁版嵁', 'argon');?></p>
</div>
<div style="margin-bottom: 16px; padding: 12px; background: #e7f3ff; border-left: 4px solid #2271b1; border-radius: 4px;">
<strong><?php _e('榛樿妯℃澘棰勮', 'argon');?>锛?/strong>
<div style="margin-top: 8px; padding: 8px; background: #fff; border-radius: 4px; max-height: 200px; overflow-y: auto;">
<div style="font-size: 12px; color: #666; margin-bottom: 4px;"><strong><?php _e('涓婚', 'argon');?>:</strong> <?php echo esc_html($config['default_subject']); ?></div>
<div style="font-size: 12px; color: #666;"><strong><?php _e('鍐呭', 'argon');?>:</strong></div>
<div style="font-size: 11px; color: #888; font-family: monospace; white-space: pre-wrap; margin-top: 4px;"><?php echo esc_html($config['default_content']); ?></div>
</div>
</div>
<div style="display: flex; gap: 8px;">
<button type="button" class="button" onclick="argonPreviewEmail('<?php echo esc_attr($type_key); ?>');">
<?php _e('棰勮閭欢', 'argon');?>
</button>
<button type="button" class="button" onclick="argonResetEmailTemplate('<?php echo esc_attr($type_key); ?>');">
<?php _e('鎭㈠榛樿', 'argon');?>
</button>
</div>
</div>
<?php endforeach; ?>
</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 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;">
<strong><?php _e('閭欢棰勮', 'argon');?></strong>
<button type="button" onclick="document.getElementById('argon_email_preview_modal').style.display='none';" style="border: none; background: none; font-size: 20px; cursor: pointer;">&times;</button>
</div>
<iframe id="argon_email_preview_iframe" style="width: 100%; height: 500px; border: none;"></iframe>
</div>
</div>
<script>
var argonEmailTypes = <?php echo json_encode($email_types); ?>;
var argonEmailDefaults = <?php
$defaults = array();
foreach ($email_types as $type_key => $type_info) {
$defaults[$type_key] = array(
'subject' => $type_info['default_subject'],
'content' => $type_info['default_content'],
);
}
echo json_encode($defaults);
?>;
function argonSwitchEmailTemplate(type) {
document.querySelectorAll('.argon-email-template-panel').forEach(function(panel) {
panel.style.display = 'none';
});
document.getElementById('argon_email_template_' + type).style.display = 'block';
document.getElementById('argon_email_template_desc').textContent = argonEmailTypes[type].description;
}
function argonInsertPlaceholder(textareaName, placeholder) {
var textarea = document.querySelector('textarea[name="' + textareaName + '"]');
if (textarea) {
var start = textarea.selectionStart;
var end = textarea.selectionEnd;
var text = textarea.value;
textarea.value = text.substring(0, start) + placeholder + text.substring(end);
textarea.selectionStart = textarea.selectionEnd = start + placeholder.length;
textarea.focus();
}
}
function argonResetEmailTemplate(type) {
if (confirm('<?php _e('纭畾瑕佹仮澶嶆閭欢绫诲瀷鐨勯粯璁ゆā鏉垮悧锛?, 'argon');?>')) {
var defaults = argonEmailDefaults[type];
document.querySelector('input[name="argon_email_template_' + type + '_subject"]').value = defaults.subject;
document.querySelector('textarea[name="argon_email_template_' + type + '_content"]').value = defaults.content;
}
}
function argonPreviewEmail(type) {
var formData = new FormData();
formData.append('action', 'argon_preview_email');
formData.append('type', type);
formData.append('nonce', '<?php echo wp_create_nonce('argon_preview_email'); ?>');
fetch(ajaxurl, {
method: 'POST',
body: formData
})
.then(function(response) { return response.text(); })
.then(function(html) {
var iframe = document.getElementById('argon_email_preview_iframe');
iframe.srcdoc = html;
document.getElementById('argon_email_preview_modal').style.display = 'block';
});
}
</script>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-friend-links"><?php _e('鍙嬫儏閾炬帴', 'argon');?></h3></th></tr>
<tr>
<th><label><?php _e('椤甸潰鏍囪', 'argon');?></label></th>
<td>
<input type="text" name="argon_friend_link_slogan" class="regular-text" value="<?php echo esc_attr(get_option('argon_friend_link_slogan', '娴峰唴瀛樼煡宸憋紝澶╂动鑻ユ瘮閭?)); ?>">
<p class="description"><?php _e('鏄剧ず鍦ㄥ弸閾鹃〉闈㈡爣棰樹笅鏂圭殑鏍囪', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('娆㈣繋鏂囨湰', 'argon');?></label></th>
<td>
<textarea name="argon_friend_link_welcome" rows="3" cols="60" class="large-text"><?php echo esc_textarea(get_option('argon_friend_link_welcome', '娆㈣繋涓庢垜浜ゆ崲鍙嬮摼锛佸鏋滄偍鐨勭綉绔欏凡娣诲姞鏈珯閾炬帴锛屽~鍐欏弸閾鹃〉闈㈠湴鍧€鍙嚜鍔ㄩ€氳繃瀹℃牳銆?)); ?></textarea>
<p class="description"><?php _e('鏄剧ず鍦ㄧ敵璇疯〃鍗曚笂鏂圭殑娆㈣繋鏂囧瓧', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鍏佽璁垮鐢宠鍙嬮摼', 'argon');?></label></th>
<td>
<select name="argon_friend_link_allow_apply">
<?php $allow_apply = get_option('argon_friend_link_allow_apply', 'true'); ?>
<option value="true" <?php if ($allow_apply=='true'){echo 'selected';} ?>><?php _e('鍏佽', 'argon');?></option>
<option value="false" <?php if ($allow_apply=='false'){echo 'selected';} ?>><?php _e('涓嶅厑璁?, 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗锛屽弸閾鹃〉闈細鏄剧ず鐢宠琛ㄥ崟', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鐢宠瑕佹眰璇存槑', 'argon');?></label></th>
<td>
<textarea name="argon_friend_link_requirements" rows="4" cols="60" class="large-text"><?php echo esc_textarea(get_option('argon_friend_link_requirements', '')); ?></textarea>
<p class="description"><?php _e('鏄剧ず鍦ㄧ敵璇疯〃鍗曚笂鏂圭殑璇存槑鏂囧瓧锛屾敮鎸?HTML', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏈笂鍙嬮摼鏃堕殣钘?, 'argon');?></label></th>
<td>
<select name="argon_friend_link_hide_no_backlink">
<?php $hide_no_backlink = get_option('argon_friend_link_hide_no_backlink', 'true'); ?>
<option value="true" <?php if ($hide_no_backlink=='true'){echo 'selected';} ?>><?php _e('闅愯棌', 'argon');?></option>
<option value="false" <?php if ($hide_no_backlink=='false'){echo 'selected';} ?>><?php _e('浠嶇劧鏄剧ず', 'argon');?></option>
</select>
<p class="description"><?php _e('妫€娴嬪埌瀵规柟鏈笂鏈珯鍙嬮摼鎴栫綉绔欏け鏁堟椂锛屾槸鍚﹀湪鍏紑椤甸潰闅愯棌锛堢鐞嗗憳濮嬬粓鍙骞舵湁鏍囪锛?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鍙嬮摼绠$悊', 'argon');?></label></th>
<td>
<p class="description"><?php _e('鍙嬮摼绠$悊宸茬Щ鑷冲弸鎯呴摼鎺ラ〉闈紝绠$悊鍛樼櫥褰曞悗璁块棶鍙嬮摼椤甸潰鍗冲彲绠$悊銆?, 'argon');?></p>
<a href="<?php echo home_url('/friends/'); ?>" class="button" target="_blank"><?php _e('鍓嶅線鍙嬮摼椤甸潰', 'argon');?></a>
</td>
</tr>
<tr><th class="subtitle"><h3 id="subsection-misc"><?php _e('鏉傞」', 'argon');?></h3></th></tr>
<tr> <th><label><?php _e('鏄惁鍚敤 Pjax', 'argon');?></label></th>
<td>
<select name="argon_pjax_disabled">
<?php $argon_pjax_disabled = get_option('argon_pjax_disabled'); ?>
<option value="false" <?php if ($argon_pjax_disabled=='false'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
<option value="true" <?php if ($argon_pjax_disabled=='true'){echo 'selected';} ?>><?php _e('涓嶅惎鐢?, 'argon');?></option>
</select>
<p class="description"><?php _e('Pjax 鍙互澧炲己椤甸潰鐨勮烦杞綋楠?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('棣栭〉闅愯棌鐗瑰畾 鍒嗙被/Tag 涓嬬殑鏂囩珷', 'argon');?></label></th>
<td>
<input type="text" class="regular-text" name="argon_hide_categories" value="<?php echo get_option('argon_hide_categories'); ?>"/>
<p class="description"><?php _e('杈撳叆瑕侀殣钘忕殑 鍒嗙被/Tag 鐨?ID锛岀敤鑻辨枃閫楀彿鍒嗛殧锛岀暀绌哄垯涓嶉殣钘?, 'argon');?><br/><a onclick="$('#id_of_categories_and_tags').slideDown(500);" style="cursor: pointer;"><?php _e('鐐规鏌ョ湅', 'argon');?></a><?php _e('鎵€鏈夊垎绫诲拰 Tag 鐨?ID', 'argon');?>
<?php
echo "<div id='id_of_categories_and_tags' style='display: none;'><div style='font-size: 22px;margin-bottom: 10px;margin-top: 10px;'>鍒嗙被</div>";
$categories = get_categories(array(
'hide_empty' => 0,
'hierarchical' => 0,
'taxonomy' => 'category'
));
foreach($categories as $category) {
echo "<span>".$category -> name ." -> ". $category -> term_id ."</span>";
}
echo "<div style='font-size: 22px;margin-bottom: 10px;'>Tag</div>";
$categories = get_categories(array(
'hide_empty' => 0,
'hierarchical' => 0,
'taxonomy' => 'post_tag'
));
foreach($categories as $category) {
echo "<span>".$category -> name ." -> ". $category -> term_id ."</span>";
}
echo "</div>";
?>
<style>
#id_of_categories_and_tags > span {
display: inline-block;
background: rgba(0, 0, 0, .08);
border-radius: 2px;
margin-right: 5px;
margin-bottom: 8px;
padding: 5px 10px;
}
</style>
</p>
</td>
</tr>
<tr>
<th><label><?php _e('缇庡寲鐧诲綍鐣岄潰', 'argon');?></label></th>
<td>
<select name="argon_enable_login_css">
<?php $argon_enable_login_css = get_option('argon_enable_login_css'); ?>
<option value="false" <?php if ($argon_enable_login_css=='false'){echo 'selected';} ?>><?php _e('涓嶅惎鐢?, 'argon');?></option>
<option value="true" <?php if ($argon_enable_login_css=='true'){echo 'selected';} ?>><?php _e('鍚敤', 'argon');?></option>
</select>
<p class="description"><?php _e('浣跨敤 Argon Design 椋庢牸鐨勭櫥褰曠晫闈?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('缇庡寲鍚庡彴鐣岄潰', 'argon');?></label></th>
<td>
<p class="description">
<?php _e('浣跨敤 Argon Design 椋庢牸鐨勫悗鍙扮晫闈?, 'argon');?><br>
<?php echo sprintf(__('鍓嶅線<a href="%s" target="_blank">涓汉璧勬枡</a>椤甸潰灏?"绠$悊鐣岄潰閰嶈壊鏂规" 璁句负 "Argon" 鍗冲彲寮€鍚€?, 'argon'), admin_url('profile.php'));?>
</p>
</td>
</tr>
<tr>
<th><label><?php _e('鍗氬棣栭〉鏄惁鏄剧ず璇磋', 'argon');?></label></th>
<td>
<select name="argon_home_show_shuoshuo">
<?php $argon_home_show_shuoshuo = get_option('argon_home_show_shuoshuo'); ?>
<option value="false" <?php if ($argon_home_show_shuoshuo=='false'){echo 'selected';} ?>><?php _e('涓嶆樉绀?, 'argon');?></option>
<option value="true" <?php if ($argon_home_show_shuoshuo=='true'){echo 'selected';} ?>><?php _e('鏄剧ず', 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗锛屽崥瀹㈤椤垫枃绔犲拰璇磋绌挎彃鏄剧ず', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鎶樺彔闀胯璇?, 'argon');?></label></th>
<td>
<select name="argon_fold_long_shuoshuo">
<?php $argon_fold_long_shuoshuo = get_option('argon_fold_long_shuoshuo'); ?>
<option value="false" <?php if ($argon_fold_long_shuoshuo=='false'){echo 'selected';} ?>><?php _e('涓嶆姌鍙?, 'argon');?></option>
<option value="true" <?php if ($argon_fold_long_shuoshuo=='true'){echo 'selected';} ?>><?php _e('鎶樺彔', 'argon');?></option>
</select>
<p class="description"><?php _e('寮€鍚悗锛岄暱璇磋鍦ㄩ瑙堢姸鎬佷笅浼氳鎶樺彔锛岄渶瑕佹墜鍔ㄥ睍寮€', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏄惁淇鏃跺尯閿欒', 'argon');?></label></th>
<td>
<select name="argon_enable_timezone_fix">
<?php $argon_enable_timezone_fix = get_option('argon_enable_timezone_fix'); ?>
<option value="false" <?php if ($argon_enable_timezone_fix=='false'){echo 'selected';} ?>><?php _e('鍏抽棴', 'argon');?></option>
<option value="true" <?php if ($argon_enable_timezone_fix=='true'){echo 'selected';} ?>><?php _e('寮€鍚?, 'argon');?></option>
</select>
<p class="description"><?php _e('濡傞亣鍒版椂鍖洪敊璇紙渚嬪涓€鏉″垰鍙戠殑璇勮鏄剧ず 8 灏忔椂鍓嶏級锛岃繖涓€夐」', 'argon');?><strong><?php _e('鍙兘', 'argon');?></strong><?php _e('鍙互淇杩欎釜闂', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏄惁鍦ㄦ枃绔犲垪琛ㄥ唴瀹归瑙堜腑闅愯棌鐭唬鐮?, 'argon');?></label></th>
<td>
<select name="argon_hide_shortcode_in_preview">
<?php $argon_hide_shortcode_in_preview = get_option('argon_hide_shortcode_in_preview'); ?>
<option value="false" <?php if ($argon_hide_shortcode_in_preview=='false'){echo 'selected';} ?>><?php _e('鍚?, 'argon');?></option>
<option value="true" <?php if ($argon_hide_shortcode_in_preview=='true'){echo 'selected';} ?>><?php _e('鏄?, 'argon');?></option>
</select>
<p class="description"></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏂囩珷鍐呭棰勮鎴彇瀛楁暟', 'argon');?></label></th>
<td>
<input type="number" name="argon_trim_words_count" min="0" max="1000" value="<?php echo get_option('argon_trim_words_count', 175); ?>"/>
<p class="description"><?php _e('璁句负 0 鏉ラ殣钘忔枃绔犲唴瀹归瑙?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鏄惁鍏佽绉诲姩绔缉鏀鹃〉闈?, 'argon');?></label></th>
<td>
<select name="argon_enable_mobile_scale">
<?php $argon_enable_mobile_scale = get_option('argon_enable_mobile_scale'); ?>
<option value="false" <?php if ($argon_enable_mobile_scale=='false'){echo 'selected';} ?>><?php _e('鍚?, 'argon');?></option>
<option value="true" <?php if ($argon_enable_mobile_scale=='true'){echo 'selected';} ?>><?php _e('鏄?, 'argon');?></option>
</select>
<p class="description"></p>
</td>
</tr>
<tr>
<th><label><?php _e('绂佺敤 Google 瀛椾綋', 'argon');?></label></th>
<td>
<select name="argon_disable_googlefont">
<?php $argon_disable_googlefont = get_option('argon_disable_googlefont'); ?>
<option value="false" <?php if ($argon_disable_googlefont=='false'){echo 'selected';} ?>><?php _e('涓嶇鐢?, 'argon');?></option>
<option value="true" <?php if ($argon_disable_googlefont=='true'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('Google 瀛椾綋鍦ㄤ腑鍥藉ぇ闄嗚闂彲鑳戒細闃诲锛岀鐢ㄥ彲浠ヨВ鍐抽〉闈㈠姞杞借闃诲鐨勯棶棰樸€傜鐢ㄥ悗锛孲erif 瀛椾綋灏嗗け鏁堛€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('绂佺敤 Argon 浠g爜鍧楁牱寮?, 'argon');?></label></th>
<td>
<select name="argon_disable_codeblock_style">
<?php $argon_disable_codeblock_style = get_option('argon_disable_codeblock_style'); ?>
<option value="false" <?php if ($argon_disable_codeblock_style=='false'){echo 'selected';} ?>><?php _e('涓嶇鐢?, 'argon');?></option>
<option value="true" <?php if ($argon_disable_codeblock_style=='true'){echo 'selected';} ?>><?php _e('绂佺敤', 'argon');?></option>
</select>
<p class="description"><?php _e('濡傛灉鎮ㄥ惎鐢ㄤ簡鍏朵粬浠g爜楂樹寒鎻掍欢锛屽彂鐜颁唬鐮佸潡鏍峰紡琚?Argon 瑕嗙洊锛屽嚭鐜颁簡鏄剧ず閿欒锛岃灏嗘閫夐」璁句负绂佺敤', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('妫€娴嬫洿鏂版簮', 'argon');?></label></th>
<td>
<select name="argon_update_source">
<?php $argon_update_source = get_option('argon_update_source'); ?>
<option value="github" <?php if ($argon_update_source=='github'){echo 'selected';} ?>>Github</option>
<option value="fastgit" <?php if ($argon_update_source=='fastgit'){echo 'selected';} ?>>Fastgit</option>
<option value="cfworker" <?php if ($argon_update_source=='cfworker'){echo 'selected';} ?>>CF Worker</option>
<option value="solstice23top" <?php if ($argon_update_source=='solstice23top'){echo 'selected';} ?>>solstice23.top</option>
<option value="stop" <?php if ($argon_update_source=='stop'){echo 'selected';} ?>><?php _e('鏆傚仠鏇存柊 (涓嶆帹鑽?', 'argon');?></option>
</select>
<p class="description"><?php _e('濡傛洿鏂颁富棰橀€熷害杈冩參锛屽彲鑰冭檻鏇存崲鏇存柊婧愩€?, 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('鐑洿鏂?, 'argon');?></label></th>
<td>
<?php $argon_enable_hot_reload = get_option('argon_enable_hot_reload', 'false'); ?>
<label>
<input type="checkbox" name="argon_enable_hot_reload" value="true" <?php if ($argon_enable_hot_reload=='true'){echo 'checked';}?>/>
<?php _e('鍚敤鐑洿鏂板姛鑳?, 'argon');?>
</label>
<p class="description"><?php _e('鍚敤鍚庯紝褰撲富棰樻枃浠惰鏇存柊鏃讹紝灏嗚嚜鍔ㄦ竻鐞嗘墍鏈夌紦瀛樺苟鏄剧ず鏇存柊閫氱煡銆?, 'argon');?></p>
<?php $argon_hot_reload_auto_refresh = get_option('argon_hot_reload_auto_refresh', 'false'); ?>
<label style="display:block;margin-top:10px;">
<input type="checkbox" name="argon_hot_reload_auto_refresh" value="true" <?php if ($argon_hot_reload_auto_refresh=='true'){echo 'checked';}?>/>
<?php _e('鑷姩鍒锋柊椤甸潰锛堟娴嬪埌鐗堟湰鏇存柊鏃惰嚜鍔ㄥ埛鏂扮敤鎴锋祻瑙堝櫒锛?, 'argon');?>
</label>
<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'); ?>
<label style="display:block;margin-top:10px;">
<input type="checkbox" name="argon_hot_reload_frontend_notice" value="true" <?php if ($argon_hot_reload_frontend_notice=='true'){echo 'checked';}?>/>
<?php _e('鍦ㄥ墠鍙版樉绀烘洿鏂伴€氱煡锛堜粎绠$悊鍛樺彲瑙侊級', 'argon');?>
</label>
<div style="margin-top:15px;">
<button type="button" class="button" id="argon_clear_cache_btn"><?php _e('鎵嬪姩娓呯悊缂撳瓨', 'argon');?></button>
<span id="argon_clear_cache_result" style="margin-left:10px;color:#46b450;display:none;"><?php _e('缂撳瓨宸叉竻鐞?, 'argon');?></span>
</div>
<script>
jQuery(document).ready(function($) {
$('#argon_clear_cache_btn').on('click', function() {
var btn = $(this);
btn.prop('disabled', true).text('<?php _e('娓呯悊涓?..', 'argon');?>');
$.post(ajaxurl, {
action: 'argon_clear_cache',
nonce: '<?php echo wp_create_nonce('argon_clear_cache'); ?>'
}, function(response) {
btn.prop('disabled', false).text('<?php _e('鎵嬪姩娓呯悊缂撳瓨', 'argon');?>');
if (response.success) {
$('#argon_clear_cache_result').fadeIn().delay(2000).fadeOut();
} else {
alert(response.data || '<?php _e('娓呯悊澶辫触', 'argon');?>');
}
});
});
});
</script>
</td>
</tr>
<tr>
<th><label><?php _e('寮哄埗鍒锋柊缂撳瓨', 'argon');?></label></th>
<td>
<?php
$force_refresh_enabled = function_exists('argon_is_force_refresh_enabled') ? argon_is_force_refresh_enabled() : false;
$enabled_time = get_option('argon_force_refresh_enabled_time', 0);
$remaining = 0;
if ($force_refresh_enabled && $enabled_time > 0) {
$remaining = max(0, 3600 - (time() - $enabled_time));
}
?>
<div id="argon_force_refresh_container">
<div id="argon_force_refresh_status" style="margin-bottom:15px;padding:12px 15px;border-radius:6px;<?php echo $force_refresh_enabled ? 'background:#d4edda;border:1px solid #c3e6cb;' : 'background:#f8f9fa;border:1px solid #e9ecef;'; ?>">
<span id="argon_force_refresh_status_text">
<?php if ($force_refresh_enabled): ?>
<span style="color:#155724;">鉁?<?php _e('寮哄埗鍒锋柊宸插惎鐢?, 'argon'); ?></span>
<span id="argon_force_refresh_countdown" style="margin-left:10px;color:#666;"><?php echo sprintf(__('鍓╀綑 %s', 'argon'), '<span id="argon_countdown_time">' . floor($remaining / 60) . ':' . str_pad($remaining % 60, 2, '0', STR_PAD_LEFT) . '</span>'); ?></span>
<?php else: ?>
<span style="color:#666;"><?php _e('寮哄埗鍒锋柊鏈惎鐢?, 'argon'); ?></span>
<?php endif; ?>
</span>
</div>
<button type="button" class="button <?php echo $force_refresh_enabled ? 'button-secondary' : 'button-primary'; ?>" id="argon_force_refresh_btn">
<?php echo $force_refresh_enabled ? __('鍏抽棴寮哄埗鍒锋柊', 'argon') : __('鍚敤寮哄埗鍒锋柊 (1灏忔椂)', 'argon'); ?>
</button>
</div>
<p class="description" style="margin-top:10px;">
<?php _e('鍚敤鍚庯紝鎵€鏈夎瀹㈠湪鍒锋柊椤甸潰鏃跺皢寮哄埗閲嶆柊鑾峰彇鎵€鏈夎祫婧愭枃浠讹紙CSS銆丣S绛夛級锛岃В鍐虫墜鏈虹缂撳瓨瀵艰嚧鐨勬牱寮忔垨鍔熻兘寮傚父闂銆?, 'argon'); ?><br/>
<?php _e('璇ュ姛鑳戒細鍦?1 灏忔椂鍚庤嚜鍔ㄥ叧闂紝浠ラ伩鍏嶅鏈嶅姟鍣ㄩ€犳垚鎸佺画鍘嬪姏銆?, 'argon'); ?>
</p>
<script>
jQuery(document).ready(function($) {
var isEnabled = <?php echo $force_refresh_enabled ? 'true' : 'false'; ?>;
var remainingSeconds = <?php echo $remaining; ?>;
var countdownTimer = null;
function updateCountdown() {
if (remainingSeconds <= 0) {
clearInterval(countdownTimer);
isEnabled = false;
updateUI();
return;
}
remainingSeconds--;
var mins = Math.floor(remainingSeconds / 60);
var secs = remainingSeconds % 60;
$('#argon_countdown_time').text(mins + ':' + (secs < 10 ? '0' : '') + secs);
}
function updateUI() {
var statusDiv = $('#argon_force_refresh_status');
var statusText = $('#argon_force_refresh_status_text');
var btn = $('#argon_force_refresh_btn');
if (isEnabled) {
statusDiv.css({'background': '#d4edda', 'border': '1px solid #c3e6cb'});
var mins = Math.floor(remainingSeconds / 60);
var secs = remainingSeconds % 60;
statusText.html('<span style="color:#155724;">鉁?<?php _e('寮哄埗鍒锋柊宸插惎鐢?, 'argon'); ?></span><span id="argon_force_refresh_countdown" style="margin-left:10px;color:#666;"><?php _e('鍓╀綑', 'argon'); ?> <span id="argon_countdown_time">' + mins + ':' + (secs < 10 ? '0' : '') + secs + '</span></span>');
btn.removeClass('button-primary').addClass('button-secondary').text('<?php _e('鍏抽棴寮哄埗鍒锋柊', 'argon'); ?>');
if (!countdownTimer) {
countdownTimer = setInterval(updateCountdown, 1000);
}
} else {
statusDiv.css({'background': '#f8f9fa', 'border': '1px solid #e9ecef'});
statusText.html('<span style="color:#666;"><?php _e('寮哄埗鍒锋柊鏈惎鐢?, 'argon'); ?></span>');
btn.removeClass('button-secondary').addClass('button-primary').text('<?php _e('鍚敤寮哄埗鍒锋柊 (1灏忔椂)', 'argon'); ?>');
if (countdownTimer) {
clearInterval(countdownTimer);
countdownTimer = null;
}
}
}
// 鍒濆鍖栧€掕鏃?
if (isEnabled && remainingSeconds > 0) {
countdownTimer = setInterval(updateCountdown, 1000);
}
$('#argon_force_refresh_btn').on('click', function() {
var btn = $(this);
btn.prop('disabled', true);
var action = isEnabled ? 'argon_disable_force_refresh' : 'argon_enable_force_refresh';
$.post(ajaxurl, {
action: action,
nonce: '<?php echo wp_create_nonce('argon_force_refresh'); ?>'
}, function(response) {
btn.prop('disabled', false);
if (response.success) {
isEnabled = !isEnabled;
if (isEnabled) {
remainingSeconds = 3600;
} else {
remainingSeconds = 0;
}
updateUI();
} else {
alert(response.data || '<?php _e('鎿嶄綔澶辫触', 'argon'); ?>');
}
});
});
});
</script>
</td>
</tr>
<tr>
<th><label><?php _e('璋冭瘯鎺у埗鍙?, 'argon');?></label></th>
<td>
<?php $argon_enable_debug_console = get_option('argon_enable_debug_console', 'false'); ?>
<label>
<input type="checkbox" name="argon_enable_debug_console" value="true" <?php if ($argon_enable_debug_console=='true'){echo 'checked';}?>/>
<?php _e('鍚敤鍓嶇璋冭瘯鎺у埗鍙?, 'argon');?>
</label>
<p class="description"><?php _e('鍚敤鍚庯紝绠$悊鍛樺彲鍦ㄥ墠鍙扮湅鍒拌皟璇曟寜閽紝鐐瑰嚮鎵撳紑鎺у埗鍙版煡鐪嬮敊璇俊鎭€傛櫘閫氱敤鎴烽亣鍒伴敊璇椂浼氭樉绀虹孩鑹查€氱煡鎻愮ず鑱旂郴绠$悊鍛樸€?, 'argon');?></p>
<?php $muted_errors = get_option('argon_muted_errors', array()); ?>
<?php if (!empty($muted_errors)): ?>
<div style="margin-top:15px;padding:15px;background:#f8f9fa;border-radius:6px;">
<strong style="display:block;margin-bottom:10px;"><?php _e('宸插睆钄界殑閿欒', 'argon'); ?> (<?php echo count($muted_errors); ?>)</strong>
<div style="max-height:200px;overflow-y:auto;">
<?php foreach ($muted_errors as $hash => $error): ?>
<div style="padding:8px 10px;margin-bottom:6px;background:#fff;border-radius:4px;border-left:3px solid #f5365c;font-size:12px;position:relative;">
<div style="color:#333;word-break:break-all;"><?php echo esc_html(mb_substr($error['message'], 0, 100)); ?><?php echo mb_strlen($error['message']) > 100 ? '...' : ''; ?></div>
<div style="color:#888;font-size:11px;margin-top:4px;">
<?php echo sprintf(__('鐢?%s 浜?%s 灞忚斀', 'argon'), esc_html($error['muted_by']), date('Y-m-d H:i', $error['muted_at'])); ?>
</div>
<button type="button" class="button button-small" style="position:absolute;top:8px;right:8px;" onclick="argonUnmuteError('<?php echo esc_attr($hash); ?>', this)"><?php _e('鍙栨秷灞忚斀', 'argon'); ?></button>
</div>
<?php endforeach; ?>
</div>
<button type="button" class="button" style="margin-top:10px;" id="argon_clear_muted_errors_btn"><?php _e('娓呯┖鎵€鏈夊睆钄?, 'argon'); ?></button>
</div>
<script>
function argonUnmuteError(hash, btn) {
if (!confirm('<?php _e('纭畾鍙栨秷灞忚斀姝ら敊璇紵', 'argon'); ?>')) return;
jQuery.post(ajaxurl, {
action: 'argon_unmute_error',
nonce: '<?php echo wp_create_nonce('argon_debug_console'); ?>',
error_hash: hash
}, function(response) {
if (response.success) {
jQuery(btn).closest('div[style*="border-left"]').fadeOut(300, function() { jQuery(this).remove(); });
}
});
}
jQuery('#argon_clear_muted_errors_btn').on('click', function() {
if (!confirm('<?php _e('纭畾娓呯┖鎵€鏈夊凡灞忚斀鐨勯敊璇紵', 'argon'); ?>')) return;
var btn = jQuery(this);
btn.prop('disabled', true);
jQuery.post(ajaxurl, {
action: 'argon_clear_muted_errors',
nonce: '<?php echo wp_create_nonce('argon_debug_console'); ?>'
}, function(response) {
if (response.success) {
btn.closest('div[style*="background:#f8f9fa"]').fadeOut(300);
}
});
});
</script>
<?php endif; ?>
</td>
</tr>
<tr>
<th><label><?php _e('椤佃剼闄勫姞鍐呭', 'argon');?></label></th>
<td>
<select name="argon_hide_footer_author">
<?php $argon_hide_footer_author = get_option('argon_hide_footer_author'); ?>
<option value="false" <?php if ($argon_hide_footer_author=='false'){echo 'selected';} ?>>Theme Argon By solstice23</option>
<option value="true" <?php if ($argon_hide_footer_author=='true'){echo 'selected';} ?>>Theme Argon</option>
</select>
<p class="description"></p>
</td>
</tr>
</tbody>
</table>
<p class="submit">
<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e('淇濆瓨鏇存敼', 'argon');?>">
<a class="button button-secondary" style="margin-left: 8px;" onclick="importSettings()"><?php _e('瀵煎叆璁剧疆', 'argon');?></a>
<a class="button button-secondary" style="margin-left: 5px;" onclick="exportSettings()"><?php _e('瀵煎嚭璁剧疆', 'argon');?></a>
</p>
</form>
</div>
<div id="headindex_box">
<button id="headindex_toggler" onclick="$('#headindex_box').toggleClass('folded');"><?php _e('鏀惰捣', 'argon');?></button>
<div id="headindex"></div>
</div>
<div id="scroll_navigation"><button onclick="$('body,html').animate({scrollTop: 0}, 300);"><?php _e('鍒伴《閮?, 'argon');?></button><button onclick="$('body,html').animate({scrollTop: $(document).height()-$(window).height()+10}, 300);"><?php _e('鍒板簳閮?, 'argon');?></button></div>
<div id="exported_settings_json_box" class="closed"><div><?php _e('璇峰鍒跺苟淇濆瓨瀵煎嚭鍚庣殑 JSON', 'argon');?></div><textarea id="exported_settings_json" readonly="true" onclick="$(this).select();"></textarea><div style="width: 100%;margin: auto;margin-top: 15px;cursor: pointer;user-select: none;" onclick="$('#exported_settings_json_box').addClass('closed');"><?php _e('纭畾', 'argon');?></div></div>
<style>
.radio-with-img {
display: inline-block;
margin-right: 15px;
margin-bottom: 20px;
text-align: center;
}
.radio-with-img > .radio-img {
cursor: pointer;
}
.radio-with-img > label {
display: inline-block;
margin-top: 10px;
}
.radio-h {
padding-bottom: 10px;
}
.radio-h > label {
margin-right: 15px;
}
#headindex_box {
position: fixed;
right: 10px;
top: 50px;
max-width: 180px;
max-height: calc(100vh - 100px);
opacity: .8;
transition: all .3s ease;
background: #fff;
box-shadow: 0 1px 1px rgba(0,0,0,.04);
padding: 6px 30px 6px 20px;
overflow-y: auto;
}
.index-subItem-box {
margin-left: 20px;
margin-top: 10px;
display: block !important;
}
.index-link {
color: #23282d;
text-decoration: unset;
transition: all .3s ease;
box-shadow: none !important;
}
.index-item {
padding: 1px 0;
}
.index-item.current > a {
color: #0073aa;
font-weight: 600;
box-shadow: none !important;
}
#headindex_toggler{
position: absolute;
right: 5px;
top: 5px;
color: #555;
background: #f7f7f7;
box-shadow: 0 1px 0 #ccc;
outline: none !important;
border: 1px solid #ccc;
border-radius: 2px;
cursor: pointer;
width: 40px;
height: 25px;
font-size: 12px;
}
#headindex_box.folded {
right: -185px;
}
#headindex_box.folded #headindex_toggler{
position: fixed;
right: 15px;
top: 55px;
font-size: 0px;
}
#headindex_box.folded #headindex_toggler:before{
content: '<?php _e('灞曞紑', 'argon');?>';
font-size: 12px;
}
@media screen and (max-width:960px){
#headindex_box {
display: none;
}
}
#scroll_navigation {
position: fixed;
right: 10px;
bottom: 10px;
z-index: 99;
user-select: none;
}
#scroll_navigation button {
color: #555;
background: #fff;
box-shadow: 0 1px 0 #ccc;
outline: none !important;
border: 1px solid #ccc;
border-radius: 2px;
cursor: pointer;
font-size: 14px;
}
#exported_settings_json_box{
position: fixed;
z-index: 99999;
left: calc(50vw - 400px);
right: calc(50vw - 400px);
top: 50px;
width: 800px;
height: 500px;
max-width: 100vw;
max-height: calc(100vh - 50px);
background: #fff;
padding: 25px;
border-radius: 5px;
box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
text-align: center;
font-size: 20px;
transition: all .3s ease;
}
#exported_settings_json{
width: 100%;
height: calc(100% - 70px);
margin-top: 25px;
font-size: 18px;
background: #fff;
resize: none;
}
#exported_settings_json::selection{
background: #cce2ff;
}
#exported_settings_json_box.closed{
transform: translateY(-30px) scale(.9);
opacity: 0;
pointer-events: none;
}
@media screen and (max-width:800px){
#exported_settings_json_box{
left: 0;
right: 0;
top: 0;
width: calc(100vw - 50px);
}
}
.form-table > tbody > tr:first-child > th{
padding-top: 0 !important;
}
.form-table.form-table-dense > tbody > tr > th{
padding-top: 10px;
padding-bottom: 10px;
}
.form-table-mathrender > tbody > tr > th > label > div {
margin-top: 10px;
padding-left: 24px;
opacity: .75;
transition: all .3s ease;
}
.form-table-mathrender > tbody > tr > th > label:hover > div {
opacity: 1;
}
.form-table-mathrender > tbody > tr > th > label > input:not(:checked) + div {
display: none;
}
#main_form > .form-table{
max-width: calc(100% - 180px);
}
</style>
<script type="text/javascript">
$(document).on("click" , ".radio-with-img .radio-img" , function(){
$("input", this.parentNode).click();
});
// 闃叉鏁板鍏紡 CDN 杈撳叆妗嗙偣鍑绘椂瑙﹀彂 radio 閫変腑
$(document).on("click", ".form-table-mathrender input[type='text']", function(e){
e.stopPropagation();
});
$(function () {
$(document).headIndex({
articleWrapSelector: '#main_form',
indexBoxSelector: '#headindex',
subItemBoxClass: "index-subItem-box",
itemClass: "index-item",
linkClass: "index-link",
offset: 80,
defaultExpanded: true
});
// 纭繚璁剧疆椤电洰褰曟榛樿灞曞紑
$('#headindex_box').removeClass('folded');
// 灞曞紑鎵€鏈夊瓙鐩綍
$('#headindex .index-subItem-box').addClass('open').show();
});
function setInputValue(name, value){
let input = $("*[name='" + name + "']");
let inputType = input.attr("type");
if (inputType == "checkbox"){
if (value == "true"){
value = true;
}else if (value == "false"){
value = false;
}
input[0].checked = value;
}else if (inputType == "radio"){
$("input[name='" + name + "'][value='" + value + "']").click();
}else{
input.val(value);
}
}
function getInputValue(input){
let inputType = input.attr("type");
if (inputType == "checkbox"){
return input[0].checked;
}else if (inputType == "radio"){
let name = input.attr("name");
let value;
$("input[name='" + name + "']").each(function(){
if (this.checked){
value = $(this).attr("value");
}
});
return value;
}else{
return input.val();
}
}
function exportArgonSettings(){
let json = {};
let pushIntoJson = function (){
name = $(this).attr("name");
value = getInputValue($(this));
json[name] = value;
};
$("#main_form > .form-table input:not([name='submit']) , #main_form > .form-table select , #main_form > .form-table textarea").each(function(){
name = $(this).attr("name");
value = getInputValue($(this));
json[name] = value;
});
return JSON.stringify(json);
}
function importArgonSettings(json){
if (typeof(json) == "string"){
json = JSON.parse(json);
}
let info = "";
for (let name in json){
try{
if ($("*[name='" + name + "']").length == 0){
throw "Input Not Found";
}
setInputValue(name, json[name]);
}catch{
info += name + " <?php _e('瀛楁瀵煎叆澶辫触', 'argon');?>\n";
}
}
return info;
}
function exportSettings(){
$("#exported_settings_json").val(exportArgonSettings());
$("#exported_settings_json").select();
$("#exported_settings_json_box").removeClass("closed");
}
function importSettings(){
let json = prompt("<?php _e('璇疯緭鍏ヨ瀵煎叆鐨勫浠?JSON', 'argon');?>");
if (json){
let res = importArgonSettings(json);
alert("<?php _e('宸插鍏ワ紝璇蜂繚瀛樻洿鏀?, 'argon');?>\n" + res)
}
}
</script>
<?php
}
add_action('admin_menu', 'themeoptions_admin_menu');
function argon_update_option($name){
update_option($name, htmlspecialchars(stripslashes($_POST[$name])));
}
function argon_update_option_allow_tags($name){
update_option($name, stripslashes($_POST[$name]));
}
function argon_update_option_checkbox($name){
if (isset($_POST[$name]) && $_POST[$name] == 'true'){
update_option($name, 'true');
}else{
update_option($name, 'false');
}
}
function argon_update_themeoptions(){
if (!isset($_POST['update_themeoptions'])){
return;
}
if ($_POST['update_themeoptions'] == 'true'){
if (!isset($_POST['argon_update_themeoptions_nonce'])){
return;
}
$nonce = $_POST['argon_update_themeoptions_nonce'];
if (!wp_verify_nonce($nonce, 'argon_update_themeoptions')){
return;
}
//閰嶇疆椤?
argon_update_option('argon_toolbar_icon');
argon_update_option('argon_toolbar_icon_link');
argon_update_option('argon_toolbar_title');
argon_update_option('argon_sidebar_banner_title');
argon_update_option('argon_sidebar_banner_subtitle');
argon_update_option('argon_sidebar_auther_name');
argon_update_option('argon_sidebar_auther_image');
argon_update_option('argon_sidebar_author_description');
argon_update_option('argon_show_todo_list');
argon_update_option('argon_show_duolingo_streak');
argon_update_option('argon_duolingo_username');
argon_update_option('argon_banner_title');
argon_update_option('argon_banner_subtitle');
argon_update_option('argon_banner_background_url');
argon_update_option('argon_banner_background_color_type');
argon_update_option_checkbox('argon_banner_background_hide_shapes');
argon_update_option('argon_enable_smoothscroll_type');
argon_update_option('argon_gravatar_cdn');
argon_update_option_allow_tags('argon_footer_html');
argon_update_option('argon_show_readingtime');
argon_update_option('argon_reading_speed');
argon_update_option('argon_reading_speed_en');
argon_update_option('argon_reading_speed_code');
argon_update_option('argon_show_sharebtn');
argon_update_option('argon_enable_timezone_fix');
argon_update_option('argon_donate_qrcode_url');
argon_update_option('argon_hide_shortcode_in_preview');
argon_update_option('argon_show_thumbnail_in_banner_in_content_page');
argon_update_option('argon_update_source');
argon_update_option_checkbox('argon_enable_hot_reload');
argon_update_option_checkbox('argon_hot_reload_auto_refresh');
argon_update_option_checkbox('argon_hot_reload_frontend_notice');
argon_update_option_checkbox('argon_enable_debug_console');
argon_update_option('argon_enable_into_article_animation');
argon_update_option('argon_disable_pjax_animation');
// 鍔ㄧ敾鏁堟灉鐩稿叧閰嶇疆
argon_update_option('argon_fab_show_darkmode_button');
argon_update_option('argon_fab_show_settings_button');
argon_update_option('argon_fab_show_gotocomment_button');
argon_update_option('argon_show_headindex_number');
argon_update_option('argon_theme_color');
argon_update_option_checkbox('argon_show_customize_theme_color_picker');
argon_update_option_allow_tags('argon_seo_description');
argon_update_option('argon_seo_keywords');
argon_update_option('argon_enable_mobile_scale');
argon_update_option('argon_page_background_url');
argon_update_option('argon_page_background_dark_url');
argon_update_option('argon_page_background_opacity');
argon_update_option('argon_post_background_opacity');
argon_update_option('argon_card_blur');
argon_update_option('argon_card_saturate');
argon_update_option('argon_page_background_banner_style');
argon_update_option('argon_hide_name_email_site_input');
argon_update_option('argon_comment_captcha_mode');
argon_update_option('argon_todo_captcha_mode');
argon_update_option('argon_need_captcha');
argon_update_option('argon_captcha_type');
argon_update_option('argon_geetest_captcha_id');
argon_update_option('argon_geetest_captcha_key');
argon_update_option('argon_geetest_api_server');
argon_update_option('argon_get_captcha_by_ajax');
// 璇勮閫熺巼闄愬埗鐩稿叧閰嶇疆
argon_update_option_checkbox('argon_rate_limit_enable');
argon_update_option('argon_rate_limit_window');
argon_update_option('argon_rate_limit_max_count');
argon_update_option('argon_rate_limit_min_interval');
// 鍙嬫儏閾炬帴鐩稿叧閰嶇疆
argon_update_option('argon_friend_link_slogan');
argon_update_option('argon_friend_link_welcome');
argon_update_option('argon_friend_link_allow_apply');
argon_update_option('argon_friend_link_captcha');
argon_update_option('argon_feedback_captcha_mode');
argon_update_option('argon_feedback_notify_admin');
argon_update_option('argon_feedback_notify_user');
argon_update_option('argon_global_blocked_ips');
argon_update_option('argon_flink_apply_limit');
argon_update_option('argon_flink_apply_period');
argon_update_option('argon_feedback_submit_limit');
argon_update_option('argon_feedback_submit_period');
argon_update_option('argon_feedback_upload_limit');
argon_update_option('argon_feedback_upload_period');
argon_update_option('argon_friend_link_hide_no_backlink');
argon_update_option_allow_tags('argon_friend_link_requirements');
// 閭欢妯℃澘鐩稿叧閰嶇疆
argon_update_option('argon_email_theme_color');
argon_update_option('argon_email_logo_url');
argon_update_option('argon_email_blog_name');
argon_update_option('argon_email_footer_text');
// 淇濆瓨绀句氦閾炬帴涓烘暟缁勶紙鑷姩琛ュ叏瀹屾暣 URL锛? $social_links = array(
'twitter' => argon_normalize_social_url('twitter', isset($_POST['argon_email_social_twitter']) ? sanitize_text_field($_POST['argon_email_social_twitter']) : ''),
'github' => argon_normalize_social_url('github', isset($_POST['argon_email_social_github']) ? sanitize_text_field($_POST['argon_email_social_github']) : ''),
'weibo' => argon_normalize_social_url('weibo', isset($_POST['argon_email_social_weibo']) ? sanitize_text_field($_POST['argon_email_social_weibo']) : ''),
'bilibili' => argon_normalize_social_url('bilibili', isset($_POST['argon_email_social_bilibili']) ? sanitize_text_field($_POST['argon_email_social_bilibili']) : '')
);
update_option('argon_email_social_links', $social_links);
// 淇濆瓨閭欢妯℃澘閰嶇疆
$email_types = array('comment_notify', 'spam_notify', 'reply_notify', 'todo_urge');
foreach ($email_types as $type) {
// 淇濆瓨鍚敤鐘舵€? argon_update_option_checkbox('argon_email_template_' . $type . '_enabled');
// 淇濆瓨涓婚
argon_update_option('argon_email_template_' . $type . '_subject');
// 淇濆瓨鍐呭锛堝厑璁?HTML锛? argon_update_option_allow_tags('argon_email_template_' . $type . '_content');
}
argon_update_option('argon_hide_footer_author');
argon_update_option('argon_card_radius');
argon_update_option('argon_comment_avatar_vcenter');
argon_update_option('argon_pjax_disabled');
argon_update_option('argon_comment_allow_markdown');
argon_update_option('argon_comment_allow_editing');
argon_update_option('argon_comment_allow_privatemode');
argon_update_option('argon_comment_allow_mailnotice');
argon_update_option_checkbox('argon_comment_mailnotice_checkbox_checked');
argon_update_option('argon_comment_pagination_type');
argon_update_option('argon_who_can_visit_comment_edit_history');
argon_update_option('argon_home_show_shuoshuo');
argon_update_option('argon_enable_search_filters');
argon_update_option('argon_search_filters_type');
argon_update_option('argon_darkmode_autoswitch');
argon_update_option('argon_enable_amoled_dark');
argon_update_option('argon_outdated_info_time_type');
argon_update_option('argon_outdated_info_days');
argon_update_option('argon_outdated_info_tip_type');
argon_update_option('argon_outdated_info_tip_content');
argon_update_option_checkbox('argon_show_toolbar_mask');
argon_update_option('argon_enable_banner_title_typing_effect');
argon_update_option('argon_banner_typing_effect_interval');
argon_update_option('argon_page_layout');
argon_update_option('argon_article_list_layout');
argon_update_option('argon_article_list_layout_mobile');
argon_update_option('argon_enable_pangu');
argon_update_option('argon_assets_path');
argon_update_option('argon_custom_assets_path');
argon_update_option('argon_comment_ua');
argon_update_option('argon_wp_path');
argon_update_option('argon_dateformat');
argon_update_option('argon_font');
argon_update_option('argon_card_shadow');
argon_update_option('argon_enable_code_highlight');
argon_update_option('argon_code_highlight_hide_linenumber');
argon_update_option('argon_code_highlight_transparent_linenumber');
argon_update_option('argon_code_highlight_break_line');
argon_update_option('argon_code_theme');
argon_update_option('argon_comment_enable_qq_avatar');
argon_update_option('argon_enable_login_css');
argon_update_option('argon_hide_categories');
argon_update_option('argon_article_meta');
argon_update_option('argon_fold_long_comments');
argon_update_option('argon_fold_long_shuoshuo');
argon_update_option('argon_first_image_as_thumbnail_by_default');
argon_update_option('argon_enable_headroom');
argon_update_option('argon_comment_emotion_keyboard');
argon_update_option_allow_tags('argon_additional_content_after_post');
argon_update_option('argon_related_post');
argon_update_option('argon_related_post_sort_orderby');
argon_update_option('argon_related_post_sort_order');
argon_update_option('argon_related_post_limit');
argon_update_option('argon_article_header_style');
argon_update_option('argon_text_gravatar');
argon_update_option('argon_disable_googlefont');
argon_update_option('argon_disable_codeblock_style');
argon_update_option('argon_reference_list_title');
argon_update_option('argon_trim_words_count');
argon_update_option('argon_enable_comment_upvote');
argon_update_option('argon_article_list_waterflow');
argon_update_option('argon_banner_size');
argon_update_option('argon_toolbar_blur');
argon_update_option('argon_toolbar_style');
argon_update_option('argon_toolbar_shadow');
argon_update_option('argon_toolbar_border');
argon_update_option('argon_toolbar_compact');
argon_update_option('argon_toolbar_center');
argon_update_option('argon_toolbar_links_left');
argon_update_option('argon_toolbar_links_right');
argon_update_option('argon_archives_timeline_show_month');
argon_update_option('argon_archives_timeline_url');
argon_update_option('argon_enable_immersion_color');
argon_update_option('argon_enable_comment_pinning');
argon_update_option('argon_show_comment_parent_info');
//LazyLoad 鐩稿叧
argon_update_option('argon_enable_lazyload');
argon_update_option('argon_lazyload_effect');
argon_update_option('argon_lazyload_threshold');
argon_update_option('argon_lazyload_loading_style');
//鍥剧墖缂╂斁棰勮鐩稿叧
argon_update_option('argon_enable_fancybox');
argon_update_option('argon_enable_zoomify');
argon_update_option('argon_zoomify_duration');
argon_update_option('argon_zoomify_easing');
argon_update_option('argon_zoomify_scale');
//鏁板鍏紡鐩稿叧閰嶇疆椤?
argon_update_option('argon_math_render');
argon_update_option('argon_mathjax_cdn_url');
argon_update_option('argon_mathjax_v2_cdn_url');
argon_update_option('argon_katex_cdn_url');
argon_update_option_checkbox('argon_mathjax3_use_local');
argon_update_option_checkbox('argon_mathjax2_use_local');
argon_update_option_checkbox('argon_katex_use_local');
//椤靛ご椤靛熬鑴氭湰
argon_update_option_allow_tags('argon_custom_html_head');
argon_update_option_allow_tags('argon_custom_html_foot');
//鍏憡
argon_update_option_allow_tags('argon_sidebar_announcement');
//AI 鎽樿
argon_update_option_checkbox('argon_ai_summary_enable');
argon_update_option('argon_ai_summary_provider');
argon_update_option('argon_ai_summary_api_key');
argon_update_option('argon_ai_summary_api_endpoint');
argon_update_option('argon_ai_summary_model');
argon_update_option('argon_ai_summary_prompt');
argon_update_option('argon_ai_summary_exclude_ids');
//AI 鍨冨溇璇勮璇嗗埆
argon_update_option_checkbox('argon_comment_spam_detection_enable');
argon_update_option('argon_comment_spam_detection_prompt_mode');
argon_update_option('argon_comment_spam_detection_confidence_threshold');
argon_update_option('argon_comment_spam_detection_prompt');
argon_update_option('argon_comment_spam_detection_mode');
argon_update_option('argon_comment_spam_detection_sample_rate');
argon_update_option('argon_comment_spam_detection_auto_action');
argon_update_option('argon_comment_spam_detection_whitelist');
argon_update_option_checkbox('argon_comment_spam_detection_exclude_logged_in');
}
}
argon_update_themeoptions();
?>