diff --git a/config/ui_ids.php b/config/ui_ids.php index 1951e9e..f8f3751 100644 --- a/config/ui_ids.php +++ b/config/ui_ids.php @@ -33,7 +33,7 @@ return [ 'about' => ['zh' => 371, 'en' => 740], // 关于睿能 'about_intro' => ['zh' => 372, 'en' => 741], // 公司简介 'about_history' => ['zh' => 373, 'en' => 742], // 发展历史 - 'about_history_page' => ['zh' => 759, 'en' => 0], // 发展历程详情页(栏目路由) + 'about_history_page' => ['zh' => 759, 'en' => 760], // 发展历程详情页(栏目路由) 'about_culture' => ['zh' => 374, 'en' => 743], // 企业文化 'about_global' => ['zh' => 375, 'en' => 744], // 全球布局 'about_members' => ['zh' => 376, 'en' => 745], // 集团成员 diff --git a/public/themes/website/1/en/demo/about-history.html b/public/themes/website/1/en/demo/about-history.html new file mode 100644 index 0000000..ab9ccb2 --- /dev/null +++ b/public/themes/website/1/en/demo/about-history.html @@ -0,0 +1,119 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + +
+ {php} + $ui_about_history = uiId('about_history'); + $seller_id = (int)($seller_id ?? 1); + $history_items = getContentByCategory($ui_about_history, $seller_id, 9999, 'sort desc', []); + if (!is_array($history_items)) { + $history_items = []; + } + usort($history_items, function ($a, $b) { + return (int)($b['sub_title'] ?? 0) - (int)($a['sub_title'] ?? 0); + }); + foreach ($history_items as &$history_item) { + if (!empty($history_item['content'])) { + $history_item['content'] = htmlspecialchars_decode($history_item['content']); + } + } + unset($history_item); + {/php} +
+
+ + +
+ {volist name="history_items" id="item"} + {php}$year = trim((string)($item['sub_title'] ?? ''));{/php} + {if $year !== ''} +
+
+ {$item.content|raw} +
+
+ {/if} + {/volist} +
+
+
+
+ + {include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + diff --git a/public/themes/website/1/en/demo/about.html b/public/themes/website/1/en/demo/about.html index 4112a6f..a5bfcc4 100644 --- a/public/themes/website/1/en/demo/about.html +++ b/public/themes/website/1/en/demo/about.html @@ -135,7 +135,12 @@

{$case_top.title}

- + + Learn more + +