diff --git a/README.md b/README.md index 5434b5d..ba9cf40 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,9 @@ git clone https://github.com/itstudio-2002/ITStudioMainSite.git 推荐菜单结构: - 首页 - 公告通知 -- 技术博客 +- 博客 - 便民服务 -- 工作室介绍 +- 社团介绍 - 加入我们 #### 2. 发布公告 diff --git a/archive.php b/archive.php index f4b162b..e1dad4f 100644 --- a/archive.php +++ b/archive.php @@ -19,11 +19,11 @@ if (!$archive_url) { $default_cover_url = get_template_directory_uri() . '/resources/it_logo_2024.svg'; $weight_meta_key = 'itstudio_weight'; -$title_cn = $is_itstudio_news_page ? '社团新闻' : '公告通知'; +$title_cn = $is_itstudio_news_page ? '社团新闻' : '公告通知'; $title_en = $is_itstudio_news_page ? 'Club News' : 'Announcements'; -$empty_cn = $is_itstudio_news_page ? '暂无新闻' : '暂无公告'; +$empty_cn = $is_itstudio_news_page ? '暂无新闻' : '暂无公告'; $empty_en = $is_itstudio_news_page ? 'No news found.' : 'No announcements found.'; -$side_title_cn = $is_itstudio_news_page ? '要闻' : '重要公告'; +$side_title_cn = $is_itstudio_news_page ? '要闻' : '重要公告'; $side_title_en = $is_itstudio_news_page ? 'Top Stories' : 'Important Announcements'; $list_query = new WP_Query(array( @@ -83,12 +83,12 @@ $featured_ids = array_slice(array_values(array_unique($featured_ids)), 0, 4); value="" placeholder="" aria-label="" - data-cn-placeholder="搜索文章..." + data-cn-placeholder="搜索文章..." data-en-placeholder="Search posts..." - data-cn-aria-label="搜索文章" + data-cn-aria-label="搜索文章" data-en-aria-label="Search posts" > - + @@ -112,22 +112,22 @@ $featured_ids = array_slice(array_values(array_unique($featured_ids)), 0, 4);
- Views + Views - Author + Author - Words + Words
@@ -135,7 +135,7 @@ $featured_ids = array_slice(array_values(array_unique($featured_ids)), 0, 4);

- Tags + Tags @@ -144,7 +144,7 @@ $featured_ids = array_slice(array_values(array_unique($featured_ids)), 0, 4); - No tags + No tags
@@ -170,8 +170,8 @@ $featured_ids = array_slice(array_values(array_unique($featured_ids)), 0, 4); 'current' => $paged, 'total' => max(1, (int) $list_query->max_num_pages), 'mid_size' => 2, - 'prev_text' => 'Previous', - 'next_text' => 'Next', + 'prev_text' => 'Previous', + 'next_text' => 'Next', 'add_args' => array_filter( array( 'q' => $keyword, @@ -218,7 +218,7 @@ $featured_ids = array_slice(array_values(array_unique($featured_ids)), 0, 4); - Views + Views @@ -226,7 +226,7 @@ $featured_ids = array_slice(array_values(array_unique($featured_ids)), 0, 4); -
  • No posts found.
  • +
  • No posts found.
  • diff --git a/assets/js/lang-toggle.js b/assets/js/lang-toggle.js index 295d95e..713b265 100644 --- a/assets/js/lang-toggle.js +++ b/assets/js/lang-toggle.js @@ -48,7 +48,7 @@ function setLang(lang) { if (langToggle) { const langText = langToggle.querySelector('.lang-text'); if (langText) { - langText.textContent = lang === 'en' ? '\u4e2d' : 'EN'; + langText.textContent = lang === 'en' ? '中' : 'EN'; } } diff --git a/functions.php b/functions.php index 342b5ae..2a0b027 100644 --- a/functions.php +++ b/functions.php @@ -60,8 +60,8 @@ function itstudio_remove_comments_dashboard_widget() { add_action('wp_dashboard_setup', 'itstudio_remove_comments_dashboard_widget'); function itstudio_apply_site_identity() { - $site_name = base64_decode('54ix54m55bel5L2c5a6k'); - $site_tagline = base64_decode('54ix54m55bel5L2c5a6k5a6Y5pa5572R56uZ'); + $site_name = '爱特工作室'; + $site_tagline = '爱特工作室官方网站'; if (get_option('blogname') !== $site_name) { update_option('blogname', $site_name); @@ -256,9 +256,9 @@ add_action('acf/init', 'itstudio_register_acf_fields'); function itstudio_archive_document_title($parts) { if (is_post_type_archive('announcement')) { - $parts['title'] = html_entity_decode('公告通知', ENT_QUOTES, 'UTF-8'); + $parts['title'] = '公告通知'; } elseif (is_post_type_archive('news')) { - $parts['title'] = html_entity_decode('社团新闻', ENT_QUOTES, 'UTF-8'); + $parts['title'] = '社团新闻'; } return $parts; diff --git a/header.php b/header.php index a38ce7a..50d0a84 100644 --- a/header.php +++ b/header.php @@ -60,7 +60,7 @@ - 爱特工作室 + 爱特工作室 IT Studio @@ -92,13 +92,13 @@ ?>