Add RSS subscription support

This commit is contained in:
User
2026-03-12 16:42:57 +08:00
parent f9dc3f7a40
commit d11873f921
4 changed files with 43 additions and 1 deletions

View File

@@ -1529,6 +1529,18 @@ function themeoptions_page(){
</tr>
<tr>
<th><label><?php _e('显示 RSS 订阅链接', 'argon');?></label></th>
<td>
<select name="argon_show_rss_link">
<?php $argon_show_rss_link = get_option('argon_show_rss_link', 'false'); ?>
<option value="false" <?php if ($argon_show_rss_link=='false'){echo 'selected';} ?>><?php _e('隐藏', 'argon');?></option>
<option value="true" <?php if ($argon_show_rss_link=='true'){echo 'selected';} ?>><?php _e('显示', 'argon');?></option>
</select>
<p class="description"><?php _e('在左侧栏博客概览下方显示 RSS 订阅链接', 'argon');?></p>
</td>
</tr>
<tr><th class="subtitle"><h2 id="section-announcement"><?php _e('博客公告', 'argon');?></h2></th></tr>
<tr>
@@ -6879,6 +6891,7 @@ function argon_update_themeoptions(){
argon_update_option('argon_show_duolingo_streak');
argon_update_option('argon_duolingo_username');
argon_update_option('argon_show_rss_link');
delete_option('argon_duolingo_email');
delete_transient('argon_duo_login_error');