fix: 删除SEO与性能分类中重复的CDN和日期格式设置
- 删除第1694-1781行重复的CDN加速子分类 - 删除重复的日期格式子分类 - 减少88行重复内容 - 保留第1606行的正确CDN设置
This commit is contained in:
88
settings.php
88
settings.php
@@ -1691,94 +1691,6 @@ function themeoptions_page(){
|
|||||||
|
|
||||||
</tr>
|
</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 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>
|
|
||||||
|
|
||||||
<!-- ========== 10. 文章显示 ========== -->
|
<!-- ========== 10. 文章显示 ========== -->
|
||||||
<tr><th class="subtitle"><h2 id="section-post-display"><?php _e('文章显示', 'argon');?></h2></th></tr>
|
<tr><th class="subtitle"><h2 id="section-post-display"><?php _e('文章显示', 'argon');?></h2></th></tr>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user