From b27e0380edc2ea537fdc860e0e3b74c040b40a35 Mon Sep 17 00:00:00 2001 From: huyuanxiang <273637057@qq.com> Date: Fri, 24 Jul 2026 10:31:27 +0800 Subject: [PATCH] =?UTF-8?q?[fix]1.=E5=A4=87=E6=A1=88=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E4=B8=BA=E6=AD=A3=E7=A1=AE=E7=BD=91=E5=9D=80?= =?UTF-8?q?=202.=E5=B9=B3=E6=9D=BF=E5=93=8D=E5=BA=94=E5=BC=8F=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E8=B0=83=E6=95=B4=E4=B8=BA1225=203.=E8=B0=B7=E6=AD=8C?= =?UTF-8?q?=E5=AD=97=E4=BD=93=E8=B0=83=E6=95=B4=E4=B8=BA=E5=9B=BD=E5=86=85?= =?UTF-8?q?=E9=95=9C=E5=83=8FCDN=20[feature]=201.=E6=B7=BB=E5=8A=A0404?= =?UTF-8?q?=E9=87=8D=E5=AE=9A=E5=90=91=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .htaccess | 6 +- .../themes/nenghui-energy-theme-cn/404.php | 60 +++++++++++++++++++ .../themes/nenghui-energy-theme-cn/footer.php | 2 +- .../themes/nenghui-energy-theme-cn/header.php | 6 +- .../themes/nenghui-energy-theme-cn/style.css | 2 +- .../block/block-about-features.php | 4 +- .../block/block-executive-profiles.php | 56 +++++++++-------- 7 files changed, 97 insertions(+), 39 deletions(-) diff --git a/.htaccess b/.htaccess index b9db82a..85076f4 100644 --- a/.htaccess +++ b/.htaccess @@ -9,9 +9,9 @@ RewriteRule . /index.php [L] # BEGIN WordPress -# ???BEGIN WordPress????END WordPress?????????????? -# ????????????? WordPress ?????????? -# ?ʦ????????????????????????? +# 在「BEGIN WordPress」与「END WordPress」之间的指令(行)是 +# 动态生成的,只应被 WordPress 过滤器修改。 +# 任何对标记之间的指令的修改都会被覆盖。 RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] diff --git a/wp-content/themes/nenghui-energy-theme-cn/404.php b/wp-content/themes/nenghui-energy-theme-cn/404.php index 2a0af05..37ca1ee 100644 --- a/wp-content/themes/nenghui-energy-theme-cn/404.php +++ b/wp-content/themes/nenghui-energy-theme-cn/404.php @@ -2,4 +2,64 @@ // 404页面 ?> + + +
+ +
+
+ +
+ +
+

+ 404 +

+ +
+ + +

+ 抱歉,您访问的页面已移出或不存在 +

+

+ 您可以尝试搜索或返回首页。 +

+ + +
+ +
+ + +
+ + + + + 返回网站首页 + + + +
+
+
\ No newline at end of file diff --git a/wp-content/themes/nenghui-energy-theme-cn/footer.php b/wp-content/themes/nenghui-energy-theme-cn/footer.php index 7b8678a..ccdb7bb 100644 --- a/wp-content/themes/nenghui-energy-theme-cn/footer.php +++ b/wp-content/themes/nenghui-energy-theme-cn/footer.php @@ -146,7 +146,7 @@ diff --git a/wp-content/themes/nenghui-energy-theme-cn/header.php b/wp-content/themes/nenghui-energy-theme-cn/header.php index c12d3b5..5eb6d6e 100644 --- a/wp-content/themes/nenghui-energy-theme-cn/header.php +++ b/wp-content/themes/nenghui-energy-theme-cn/header.php @@ -10,10 +10,10 @@ - - + + - + diff --git a/wp-content/themes/nenghui-energy-theme-cn/style.css b/wp-content/themes/nenghui-energy-theme-cn/style.css index 173287e..dc98046 100644 --- a/wp-content/themes/nenghui-energy-theme-cn/style.css +++ b/wp-content/themes/nenghui-energy-theme-cn/style.css @@ -362,7 +362,7 @@ p.article-time{ } /* 响应式设计 */ -@media screen and (max-width: 768px) { +@media screen and (max-width: 1225px) { .menu-toggle { display: block; } diff --git a/wp-content/themes/nenghui-energy-theme-cn/template-parts/block/block-about-features.php b/wp-content/themes/nenghui-energy-theme-cn/template-parts/block/block-about-features.php index 4ec7bbf..5a47986 100644 --- a/wp-content/themes/nenghui-energy-theme-cn/template-parts/block/block-about-features.php +++ b/wp-content/themes/nenghui-energy-theme-cn/template-parts/block/block-about-features.php @@ -3,8 +3,8 @@
-
0+
-
技术研发人员
+
50+
+
知识产权
diff --git a/wp-content/themes/nenghui-energy-theme-cn/template-parts/block/block-executive-profiles.php b/wp-content/themes/nenghui-energy-theme-cn/template-parts/block/block-executive-profiles.php index bcb4196..8ee0fc8 100644 --- a/wp-content/themes/nenghui-energy-theme-cn/template-parts/block/block-executive-profiles.php +++ b/wp-content/themes/nenghui-energy-theme-cn/template-parts/block/block-executive-profiles.php @@ -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_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) { - $titles_to_extract = array('博士', '女士', '先生'); - $extracted_title = ''; - $clean_title = $title; - - foreach ($titles_to_extract as $title_prefix) { - if (strpos($title, $title_prefix) !== false) { - $extracted_title = $title_prefix; - $clean_title = trim(str_replace($title_prefix, '', $title)); - break; - } +// 处理高管信息,将称谓移到姓名后面 +function format_executive_info($name, $title) { + $titles_to_extract = array('博士', '女士', '先生'); + $extracted_title = ''; + $clean_title = $title; + + foreach ($titles_to_extract as $title_prefix) { + if (strpos($title, $title_prefix) !== false) { + $extracted_title = $title_prefix; + $clean_title = trim(str_replace($title_prefix, '', $title)); + break; } - - $formatted_name = $name . ($extracted_title ? ' ' . $extracted_title : ''); - - return array( - 'name' => $formatted_name, - 'title' => $clean_title - ); } + + $formatted_name = $name . ($extracted_title ? ' ' . $extracted_title : ''); + + return array( + 'name' => $formatted_name, + '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月至今,任公司高质量发展督导部负责人。' ), array( - 'name' => '王芳', - 'title' => '女士 独立董事', - 'bio' => '1962年10月出生,北京大学经济学硕士,日本拓殖大学国际开发博士研究生。历任电子工业部第49研究院助理工程师、黑龙江广播电视大学工程师、黑龙江省教育委员会副研究员、兵器工业部标准化所副研究员、北京国家会计学院教研中心副研究员、浙江华铁应急设备科技股份有限公司独立董事、同策房产咨询股份有限公司独立董事等,现任临商银行股份有限公司独立董事、京北方信息技术股份有限公司独立董事,2020年5月至今任公司独立董事。' + 'name' => '梅晓军', + 'title' => '先生 独立董事', + 'bio' => '1978年7月出生,中国国籍,无境外永久居留权,本科学历,注册会计师。2015年5月至2024年8月,任上海上审会计师事务所审计经理,2024年9月至今,任江苏森迪文旅集团有限公司董事长助理。' ), array( - 'name' => '张美霞', - 'title' => '女士 独立董事', - 'bio' => '1969年9月出生,上海财经大学会计学专业博士,注册会计师。1991年7月至1997年7月就职于山东东营财校,担任教师;2000年3月至今于上海外国语大学国际金融贸易学院先后任教师、副教授、硕士研究生导师,2015年5月至2022年10月任上海麦金地集团股份有限公司独立董事,2020年5月至今任公司独立董事。' + 'name' => '焦学军', + 'title' => '先生 独立董事', + 'bio' => '1968年6月出生,中国国籍,无境外永久居留权,毕业于同济大学,硕士研究生学历,正高级工程师,中国城市环境卫生协会村镇垃圾治理专委会常务副主任委员、焚烧专委员会专家组副组长。曾任上海环境研究中心总工程师、上海环境集团股份有限公司项目经理、集团副总监等职务,2014年4月至今,历任上海康恒环境股份有限公司总经理、首席技术官,现任首席技术官。' ), - array( - 'name' => '王猛', + array( + 'name' => '钟勇', 'title' => '先生 独立董事', - 'bio' => '1982年10月出生,北京大学法学学士,曾任职于中融国际信托有限公司、北京竞天公诚律师事务所及北京中银律师事务所等,现任北京嘉润律师事务所律师、高级合伙人,兼任中航直升机股份有限公司独立董事、广东顺威精密塑料股份有限公司独立董事。' + 'bio' => '1977年12月出生,博士研究生学历,清华大学热能工程系学士、硕士、华威大学博士、剑桥大学博士后,哈尔滨工程大学兼职教授,中国国资报道专家咨询委员会专家委员。曾担任英国碳资源管理有限公司高级项目经理、北京凯裕达环保科技有限公司联合创始人副总经理、联合国训练研究所CIFAL上海培训基地筹建办主任、吉利硅谷(谷城)硅材料科技有限公司副总经理、董事,2023年5月至今,历任丰融(深圳)智慧能源科技有限公司总经理、杭州市丰融科技产业发展集团有限公司副董事长,2024年10月至今任公司独立董事。' ), array( 'name' => '罗联明',