[fix]1.备案网站更换为正确网址

2.平板响应式宽度调整为1225
3.谷歌字体调整为国内镜像CDN
[feature]
1.添加404重定向内容
main
huyuanxiang 1 month ago
parent f5115c52ba
commit b27e0380ed

@ -9,9 +9,9 @@ RewriteRule . /index.php [L]
</IfModule> </IfModule>
# BEGIN WordPress # BEGIN WordPress
# ???BEGIN WordPress????END WordPress???????????§µ??? # 在「BEGIN WordPress」与「END WordPress」之间的指令
# ????????????? WordPress ?????????? # 动态生成的,只应被 WordPress 过滤器修改。
# ?¦Ê¦Æ????????????????????????? # 任何对标记之间的指令的修改都会被覆盖。
<IfModule mod_rewrite.c> <IfModule mod_rewrite.c>
RewriteEngine On RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

@ -2,4 +2,64 @@
// 404页面 // 404页面
?> ?>
<?php get_header();?> <?php get_header();?>
<!-- 404 主体内容区 -->
<main class="min-h-[75vh] flex items-center justify-center bg-background px-4 py-20 sm:px-6 lg:px-8 relative overflow-hidden">
<!-- 背景装饰光辉粒子 -->
<div class="absolute -top-24 -left-24 w-96 h-96 bg-primary-light/50 rounded-full blur-3xl pointer-events-none"></div>
<div class="absolute -bottom-24 -right-24 w-96 h-96 bg-accent-light/50 rounded-full blur-3xl pointer-events-none"></div>
<div class="max-w-2xl w-full text-center relative py-20 z-10" >
<!-- 404 动画数字 & 状态图标 -->
<div class="relative inline-block mb-6">
<h1 class="text-8xl sm:text-9xl font-black tracking-tight text-slate-heading font-['Space_Grotesk'] select-none">
4<span class="text-primary inline-block animate-pulse">0</span>4
</h1>
<!-- 悬浮光环 decoration -->
</div>
<!-- 提示文案 -->
<h2 class="text-2xl sm:text-3xl font-bold text-slate-heading mb-4">
抱歉,您访问的页面已移出或不存在
</h2>
<p class="text-base sm:text-lg text-slate-text/80 mb-8 max-w-md mx-auto leading-relaxed">
您可以尝试搜索或返回首页。
</p>
<!-- 页面内快速搜索框 -->
<div class="max-w-md mx-auto mb-10">
<form role="search" method="get" action="<?php echo esc_url(home_url('/category/news-center/')); ?>" class="relative flex items-center shadow-soft rounded-2xl overflow-hidden bg-surface border border-slate-200/80 focus-within:border-primary transition-all duration-300">
<span class="pl-4 text-slate-400 flex items-center">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<circle cx="11" cy="11" r="8" stroke-width="2"></circle>
<path d="m21 21-4.35-4.35" stroke-width="2" stroke-linecap="round"></path>
</svg>
</span>
<input type="hidden" name="category" value="" />
<input type="hidden" name="post_type" value="post" />
<input type="search" name="search_keyword" placeholder="试试搜索您需要的关键词..." class="w-full py-3.5 px-3 text-slate-text border-none focus:ring-0 focus:outline-none p-0 bg-transparent placeholder-slate-400 focus:outline-none text-sm sm:text-base" autocomplete="off" />
<button type="submit" class="mr-1.5 px-5 py-2 bg-primary hover:bg-primary-dark text-white font-medium rounded-xl text-sm transition-colors duration-200 flex-shrink-0">
搜索
</button>
</form>
</div>
<!-- 操作按钮组 -->
<div class="flex flex-col sm:flex-row items-center justify-center gap-4">
<a href="<?php echo esc_url(home_url('/')); ?>" class="w-full sm:w-auto inline-flex items-center justify-center px-7 py-3.5 bg-primary hover:bg-primary-dark text-white hover:text-white font-semibold rounded-xl shadow-float hover:shadow-xl hover:shadow-primary/30 transform hover:-translate-y-0.5 transition-all duration-300">
<svg class="w-5 h-5 mr-2 stroke-current text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path>
</svg>
<span class="text-white hover:text-white">返回网站首页</span>
</a>
<button onclick="window.history.back();" class="w-full sm:w-auto inline-flex items-center justify-center px-7 py-3.5 bg-surface hover:bg-slate-50 text-slate-text hover:text-primary font-semibold rounded-xl border border-slate-200 hover:border-slate-300 transition-all duration-200 cursor-pointer">
<svg class="w-5 h-5 mr-2 stroke-current" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"></path>
</svg>
返回上一页
</button>
</div>
</div>
</main>
<?php get_footer();?> <?php get_footer();?>

@ -146,7 +146,7 @@
<div class="footer-copyright"> <div class="footer-copyright">
<p>&copy; <?php echo date('Y'); ?> 上海能辉科技股份有限公司 版权所有 | <p>&copy; <?php echo date('Y'); ?> 上海能辉科技股份有限公司 版权所有 |
<a href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31010502007560">公安网备沪公网安备31010502007560号</a> | <a href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31010502007560">公安网备沪公网安备31010502007560号</a> |
<a href="https://beiancx.miit.gov.cn/" rel="external nofollow">工信部备案沪ICP备16000753号-8</a> <a href="https://beian.miit.gov.cn/" rel="external nofollow">工信部备案沪ICP备16000753号-8</a>
<a href="https://cn.nenghui.com/privacy-policy/">隐私政策</a> <a href="https://cn.nenghui.com/privacy-policy/">隐私政策</a>
</p> </p>
</div> </div>

@ -10,10 +10,10 @@
<?php wp_head(); ?> <?php wp_head(); ?>
<!-- 引入字体与图标 --> <!-- 引入字体与图标 -->
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/> <link href="https://fonts.loli.net/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com" rel="preconnect"/> <link href="https://fonts.loli.net" rel="preconnect"/>
<link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect"/> <link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect"/>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;700;900&family=Liu+Jian+Mao+Cao:wght@400;700&family=Montserrat:wght@400;500;700;800;900&family=Inter:wght@400;500;700;800;900&family=JetBrains+Mono:wght@500&display=swap" rel="stylesheet"/> <link href="https://fonts.loli.net/css2?family=Space+Grotesk:wght@300;400;500;700;900&family=Liu+Jian+Mao+Cao:wght@400;700&family=Montserrat:wght@400;500;700;800;900&family=Inter:wght@400;500;700;800;900&family=JetBrains+Mono:wght@500&display=swap" rel="stylesheet"/>
<!-- 引入 Swiper 与 AOS --> <!-- 引入 Swiper 与 AOS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/11.0.5/swiper-bundle.min.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/11.0.5/swiper-bundle.min.css" />

@ -362,7 +362,7 @@ p.article-time{
} }
/* 响应式设计 */ /* 响应式设计 */
@media screen and (max-width: 768px) { @media screen and (max-width: 1225px) {
.menu-toggle { .menu-toggle {
display: block; display: block;
} }

@ -3,8 +3,8 @@
<!-- 统计数据展示 --> <!-- 统计数据展示 -->
<div class="about-features-stats"> <div class="about-features-stats">
<div class="about-features-stat-item"> <div class="about-features-stat-item">
<div class="text-[48px] text-white font-bold mb-2"> <span class="about-counter" data-target="100">0</span>+</div> <div class="text-[48px] text-white font-bold mb-2"> <span class="about-counter" data-target="200">50</span>+</div>
<div class="about-stat-label">技术研发人员</div> <div class="about-stat-label">知识产权</div>
</div> </div>
<div class="about-features-stat-item"> <div class="about-features-stat-item">

@ -25,28 +25,26 @@ $columns = isset($current_attributes['columns']) ? intval($current_attributes['c
wp_enqueue_style('executive-profiles-style', get_template_directory_uri() . '/assets/css/executive-profiles.css', array(), '1.0.0'); wp_enqueue_style('executive-profiles-style', get_template_directory_uri() . '/assets/css/executive-profiles.css', array(), '1.0.0');
wp_enqueue_script('executive-profiles-script', get_template_directory_uri() . '/assets/js/executive-profiles.js', array('jquery'), '1.0.0', true); wp_enqueue_script('executive-profiles-script', get_template_directory_uri() . '/assets/js/executive-profiles.js', array('jquery'), '1.0.0', true);
// 处理高管信息,将称谓移到姓名后面(增加函数存在性检查,避免重复声明) // 处理高管信息,将称谓移到姓名后面
if (!function_exists('format_executive_info')) { function format_executive_info($name, $title) {
function format_executive_info($name, $title) { $titles_to_extract = array('博士', '女士', '先生');
$titles_to_extract = array('博士', '女士', '先生'); $extracted_title = '';
$extracted_title = ''; $clean_title = $title;
$clean_title = $title;
foreach ($titles_to_extract as $title_prefix) { foreach ($titles_to_extract as $title_prefix) {
if (strpos($title, $title_prefix) !== false) { if (strpos($title, $title_prefix) !== false) {
$extracted_title = $title_prefix; $extracted_title = $title_prefix;
$clean_title = trim(str_replace($title_prefix, '', $title)); $clean_title = trim(str_replace($title_prefix, '', $title));
break; break;
}
} }
}
$formatted_name = $name . ($extracted_title ? ' ' . $extracted_title : ''); $formatted_name = $name . ($extracted_title ? ' ' . $extracted_title : '');
return array( return array(
'name' => $formatted_name, 'name' => $formatted_name,
'title' => $clean_title 'title' => $clean_title
); );
}
} }
// 高管数据 // 高管数据
@ -82,19 +80,19 @@ $executives = array(
'bio' => '1979年7月出生中国石油大学华东工程管理专业本科学历。2001年7月至2014年11月任青岛海尔冷柜项目经理、负责人2014年12月至2016年2月任中融新大集团派驻山东物流集团监察部主任2016年3月至2023年2月任青岛昌盛日电太阳能有限公司审计总监、运营总监2021年11月至今任青岛宏博商通安装工程有限公司总经理2023年3月至今任公司高质量发展督导部负责人。' 'bio' => '1979年7月出生中国石油大学华东工程管理专业本科学历。2001年7月至2014年11月任青岛海尔冷柜项目经理、负责人2014年12月至2016年2月任中融新大集团派驻山东物流集团监察部主任2016年3月至2023年2月任青岛昌盛日电太阳能有限公司审计总监、运营总监2021年11月至今任青岛宏博商通安装工程有限公司总经理2023年3月至今任公司高质量发展督导部负责人。'
), ),
array( array(
'name' => '王芳', 'name' => '梅晓军',
'title' => '女士 独立董事', 'title' => '先生 独立董事',
'bio' => '1962年10月出生北京大学经济学硕士日本拓殖大学国际开发博士研究生。历任电子工业部第49研究院助理工程师、黑龙江广播电视大学工程师、黑龙江省教育委员会副研究员、兵器工业部标准化所副研究员、北京国家会计学院教研中心副研究员、浙江华铁应急设备科技股份有限公司独立董事、同策房产咨询股份有限公司独立董事等现任临商银行股份有限公司独立董事、京北方信息技术股份有限公司独立董事2020年5月至今任公司独立董事。' 'bio' => '1978年7月出生中国国籍无境外永久居留权本科学历注册会计师。2015年5月至2024年8月任上海上审会计师事务所审计经理2024年9月至今任江苏森迪文旅集团有限公司董事长助理。'
), ),
array( array(
'name' => '张美霞', 'name' => '焦学军',
'title' => '女士 独立董事', 'title' => '先生 独立董事',
'bio' => '1969年9月出生上海财经大学会计学专业博士注册会计师。1991年7月至1997年7月就职于山东东营财校担任教师2000年3月至今于上海外国语大学国际金融贸易学院先后任教师、副教授、硕士研究生导师2015年5月至2022年10月任上海麦金地集团股份有限公司独立董事2020年5月至今任公司独立董事。' 'bio' => '1968年6月出生中国国籍无境外永久居留权毕业于同济大学硕士研究生学历正高级工程师中国城市环境卫生协会村镇垃圾治理专委会常务副主任委员、焚烧专委员会专家组副组长。曾任上海环境研究中心总工程师、上海环境集团股份有限公司项目经理、集团副总监等职务2014年4月至今历任上海康恒环境股份有限公司总经理、首席技术官现任首席技术官。'
), ),
array( array(
'name' => '王猛', 'name' => '钟勇',
'title' => '先生 独立董事', 'title' => '先生 独立董事',
'bio' => '1982年10月出生北京大学法学学士曾任职于中融国际信托有限公司、北京竞天公诚律师事务所及北京中银律师事务所等现任北京嘉润律师事务所律师、高级合伙人兼任中航直升机股份有限公司独立董事、广东顺威精密塑料股份有限公司独立董事。' 'bio' => '1977年12月出生博士研究生学历清华大学热能工程系学士、硕士、华威大学博士、剑桥大学博士后哈尔滨工程大学兼职教授中国国资报道专家咨询委员会专家委员。曾担任英国碳资源管理有限公司高级项目经理、北京凯裕达环保科技有限公司联合创始人副总经理、联合国训练研究所CIFAL上海培训基地筹建办主任、吉利硅谷谷城硅材料科技有限公司副总经理、董事2023年5月至今历任丰融深圳智慧能源科技有限公司总经理、杭州市丰融科技产业发展集团有限公司副董事长2024年10月至今任公司独立董事。'
), ),
array( array(
'name' => '罗联明', 'name' => '罗联明',

Loading…
Cancel
Save