From 29df31fd4758add5a882e51b1e2f9e33f895d94e Mon Sep 17 00:00:00 2001 From: xiaodong Date: Thu, 10 Sep 2026 11:25:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E7=AB=99=E7=82=B9=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/themes/website/4/en/demo/about-history.html | 119 +++++ public/themes/website/4/en/demo/about.html | 354 +++++++++++++++ public/themes/website/4/en/demo/announce.html | 150 +++++++ public/themes/website/4/en/demo/category.html | 228 ++++++++++ .../themes/website/4/en/demo/components/empty.html | 8 + .../themes/website/4/en/demo/components/mask.html | 206 +++++++++ public/themes/website/4/en/demo/contact.html | 307 +++++++++++++ public/themes/website/4/en/demo/download.html | 163 +++++++ public/themes/website/4/en/demo/faq.html | 135 ++++++ public/themes/website/4/en/demo/investment.html | 288 ++++++++++++ public/themes/website/4/en/demo/news-detail.html | 217 +++++++++ public/themes/website/4/en/demo/news.html | 281 ++++++++++++ public/themes/website/4/en/demo/product.html | 484 +++++++++++++++++++++ public/themes/website/4/en/demo/search.html | 192 ++++++++ public/themes/website/4/en/demo/solution.html | 259 +++++++++++ public/themes/website/4/en/demo/solution2.html | 281 ++++++++++++ public/themes/website/4/en/demo/video.html | 166 +++++++ public/themes/website/4/zh/demo/about-history.html | 119 +++++ public/themes/website/4/zh/demo/about.html | 354 +++++++++++++++ public/themes/website/4/zh/demo/announce.html | 150 +++++++ public/themes/website/4/zh/demo/category.html | 228 ++++++++++ .../themes/website/4/zh/demo/components/empty.html | 8 + .../themes/website/4/zh/demo/components/mask.html | 206 +++++++++ public/themes/website/4/zh/demo/contact.html | 307 +++++++++++++ public/themes/website/4/zh/demo/download.html | 163 +++++++ public/themes/website/4/zh/demo/faq.html | 135 ++++++ public/themes/website/4/zh/demo/investment.html | 288 ++++++++++++ public/themes/website/4/zh/demo/news-detail.html | 217 +++++++++ public/themes/website/4/zh/demo/news.html | 281 ++++++++++++ public/themes/website/4/zh/demo/product.html | 484 +++++++++++++++++++++ public/themes/website/4/zh/demo/search.html | 192 ++++++++ public/themes/website/4/zh/demo/solution.html | 259 +++++++++++ public/themes/website/4/zh/demo/solution2.html | 280 ++++++++++++ public/themes/website/4/zh/demo/video.html | 166 +++++++ 34 files changed, 7675 insertions(+) create mode 100644 public/themes/website/4/en/demo/about-history.html create mode 100644 public/themes/website/4/en/demo/about.html create mode 100644 public/themes/website/4/en/demo/announce.html create mode 100644 public/themes/website/4/en/demo/category.html create mode 100644 public/themes/website/4/en/demo/components/empty.html create mode 100644 public/themes/website/4/en/demo/components/mask.html create mode 100644 public/themes/website/4/en/demo/contact.html create mode 100644 public/themes/website/4/en/demo/download.html create mode 100644 public/themes/website/4/en/demo/faq.html create mode 100644 public/themes/website/4/en/demo/investment.html create mode 100644 public/themes/website/4/en/demo/news-detail.html create mode 100644 public/themes/website/4/en/demo/news.html create mode 100644 public/themes/website/4/en/demo/product.html create mode 100644 public/themes/website/4/en/demo/search.html create mode 100644 public/themes/website/4/en/demo/solution.html create mode 100644 public/themes/website/4/en/demo/solution2.html create mode 100644 public/themes/website/4/en/demo/video.html create mode 100644 public/themes/website/4/zh/demo/about-history.html create mode 100644 public/themes/website/4/zh/demo/about.html create mode 100644 public/themes/website/4/zh/demo/announce.html create mode 100644 public/themes/website/4/zh/demo/category.html create mode 100644 public/themes/website/4/zh/demo/components/empty.html create mode 100644 public/themes/website/4/zh/demo/components/mask.html create mode 100644 public/themes/website/4/zh/demo/contact.html create mode 100644 public/themes/website/4/zh/demo/download.html create mode 100644 public/themes/website/4/zh/demo/faq.html create mode 100644 public/themes/website/4/zh/demo/investment.html create mode 100644 public/themes/website/4/zh/demo/news-detail.html create mode 100644 public/themes/website/4/zh/demo/news.html create mode 100644 public/themes/website/4/zh/demo/product.html create mode 100644 public/themes/website/4/zh/demo/search.html create mode 100644 public/themes/website/4/zh/demo/solution.html create mode 100644 public/themes/website/4/zh/demo/solution2.html create mode 100644 public/themes/website/4/zh/demo/video.html diff --git a/public/themes/website/4/en/demo/about-history.html b/public/themes/website/4/en/demo/about-history.html new file mode 100644 index 0000000..ab9ccb2 --- /dev/null +++ b/public/themes/website/4/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/4/en/demo/about.html b/public/themes/website/4/en/demo/about.html new file mode 100644 index 0000000..a88951b --- /dev/null +++ b/public/themes/website/4/en/demo/about.html @@ -0,0 +1,354 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + +
+
+
+

+ {$current_cate.content|raw} +

+
+ +
+ {php} + $ui_about_intro = uiId('about_intro'); + $ui_about_history = uiId('about_history'); + $ui_about_culture = uiId('about_culture'); + $ui_about_global = uiId('about_global'); + $ui_about_members = uiId('about_members'); + $ui_about_honors = uiId('about_honors'); + $ui_about_csr = uiId('about_csr'); + $ui_download_csr = uiId('download_csr'); + $csr_report_href = getMuiLangUrl('/download.html'); + if ($ui_download_csr > 0) { + $csr_report_href .= '?cid=' . $ui_download_csr; + } + {/php} + {hcTaglib:category id="$ui_about_intro" item="vo" field="*"} +
+

{$vo.title}

+
+
+

{:nl2br($vo.description)}

+
+ {php} + $stats_raw = explode(',', $vo['desc']); + $stats_list = []; + foreach ($stats_raw as $item) { + $parts = explode(';', $item); + if (count($parts) === 3) { + $stats_list[] = ['num' => $parts[0], 'unit' => $parts[1], 'text' => $parts[2]]; + } + } + {/php} +
    + {volist name="stats_list" id="stat"} +
  • + {$stat.num}{$stat.unit} + {$stat.text} +
  • + {/volist} +
+
+
+ {/hcTaglib:category} + + + {hcTaglib:category id="$ui_about_history" item="vo" field="*"} +
+
+

{$vo.title}

+
+ + +
+
+
+
+ {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="9999" mainField="id,title,sub_title,content,thumbnail" sort="sort desc" subField="" onlyData="2"} + + {/hcTaglib:content} +
+
+
+
+ + +
+
+
+ {/hcTaglib:category} + {hcTaglib:category id="$ui_about_culture" item="vo" field="*"} +
+ +
+

{$vo.title}

+ {php} + $culture_raw = explode('#', $vo['description']); + $culture_list = []; + foreach ($culture_raw as $item) { + $parts = explode(';', $item); + if (count($parts) === 3) { + $culture_list[] = ['zh' => $parts[0], 'en' => $parts[1], 'text' => $parts[2]]; + } + } + {/php} +
+ {volist name="culture_list" id="culture"} +
+
+ {$culture.zh} + {$culture.en} +
+

{$culture.text|raw}

+
+ {/volist} +
+
+
+ {/hcTaglib:category} + + {hcTaglib:category id="$ui_about_global" item="vo" field="*"} +
+

{$vo.title}

+ {php} + $global_raw = explode(',', $vo['description']); + $global_list = []; + foreach ($global_raw as $item) { + $parts = explode(';', $item, 3); + if (count($parts) >= 2) { + $desc = isset($parts[2]) ? str_replace(';', '
', $parts[2]) : ''; + $global_list[] = ['num' => $parts[0], 'unit' => $parts[1], 'desc' => $desc]; + } + } + $global_left = array_slice($global_list, 0, 3); + $global_right = array_slice($global_list, 3); + {/php} +
+
    + {volist name="global_left" id="item"} +
  • + {$item.num}{$item.unit} + {if $item.desc}{$item.desc|raw}{/if} +
  • + {/volist} +
+
+ +
+
    + {volist name="global_right" id="item"} +
  • + {$item.num}{$item.unit} + {if $item.desc}{$item.desc|raw}{/if} +
  • + {/volist} +
+
+
+ {/hcTaglib:category} + + {hcTaglib:category id="$ui_about_members" item="vo" field="*"} +
+ +
+

{$vo.title}

+
+
+
+ {php}$member_idx = 0;{/php} + {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="50" mainField="id,url,title,sub_title,content,thumbnail" sort="sort asc" subField="" onlyData="2"} +
+
+
+

{$case_top.title}

+

+ {$case_top.content|strip_tags} +

+
+ Explore more +
+
+ {php}$member_idx++;{/php} + {/hcTaglib:content} +
+
+
+ {php}$member_idx = 0;{/php} + {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="50" mainField="id,title,sub_title,content,thumbnail" sort="sort asc" subField="" onlyData="2"} + + {php}$member_idx++;{/php} + {/hcTaglib:content} +
+
+
+
+ {/hcTaglib:category} + + {hcTaglib:category id="$ui_about_honors" item="vo" field="*"} +
+
+

{$vo.title}

+

{$vo.description}

+
+
+
    + {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="999" mainField="id,url,title,sub_title,content,thumbnail" sort="sort asc" subField="" onlyData="2"} +
  • + {$case_top.title} + + + + + + + + + View certificate + + +
  • + {/hcTaglib:content} +
+ +
+
+ {/hcTaglib:category} + + {hcTaglib:category id="$ui_about_csr" item="vo" field="*"} +
+ +
+

{$vo.title}

+
+

+ {$vo.description} +

+ Social Responsibility Report +
+
+
+ {/hcTaglib:category} +
+ + {include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/4/en/demo/announce.html b/public/themes/website/4/en/demo/announce.html new file mode 100644 index 0000000..e1db2e0 --- /dev/null +++ b/public/themes/website/4/en/demo/announce.html @@ -0,0 +1,150 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+
+
+

{$current_cate.title}

+

{$current_cate.description}

+
+ +
+ {php} + $filter_cid = (string)input('cid', ''); + $filter_all_id = (string)($current_cate['id'] ?? ''); + if ($filter_cid === '') { + $filter_cid = $filter_all_id; + } + $filter_keywords = (string)input('keywords', ''); + $filter_is_all = ($filter_cid === $filter_all_id); + $filter_label = 'Filter by product'; + if (!$filter_is_all && !empty($sub_cates)) { + foreach ($sub_cates as $sc) { + if ((string)($sc['id'] ?? '') === $filter_cid) { + $filter_label = $sc['title'] ?? $filter_label; + break; + } + } + } + {/php} +
+ + +
+ +
+ +
+ {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="8" item="vo"} + + +

{$vo.title}

+ + Explore more + + + + + +
+ {/hcTaglib:contentPage} +
+ {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = 'No matching notices'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$hc_content|raw} + {/if} +
+
+ {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + diff --git a/public/themes/website/4/en/demo/category.html b/public/themes/website/4/en/demo/category.html new file mode 100644 index 0000000..3353978 --- /dev/null +++ b/public/themes/website/4/en/demo/category.html @@ -0,0 +1,228 @@ + + +{php} +// var_dump($current_cate); +$current_cate_id = $current_cate['id'] ?? ''; +//exit(); +{/php} + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+ {php}$ui_product = uiId('product');{/php} +
+ + +
+ + +
+ {hcTaglib:subcategory pid="$ui_product" item="vo" sort="" key="key_top"} + {php} + $sub_cate_id = $vo['id']; + $need_show_sub_content = (int)($vo['need_show_sub_content'] ?? 0); + {/php} + {hcTaglib:subcategory pid="$sub_cate_id" onlyData="1"} + {/hcTaglib:subcategory} + {php} + $level2_list = $hc_subcategory ?? []; + $has_level2 = !empty($level2_list); + {/php} + +
+
+ {if $has_level2} + {volist name="level2_list" id="vo_sub" key="key_sub"} + {hcTaglib:contentPage2 cid="$vo_sub.id" mainField="id,category_id,title,sub_title,thumbnail" subField="" name="hc_content" limit="100" item="content_sub22" sort="sort asc"} + {/hcTaglib:contentPage2} + {volist name="hc_content" id="vo_content"} + + {/volist} + {/volist} + {else /} + + {hcTaglib:contentPage2 cid="$vo.id" mainField="id,category_id,title,sub_title,thumbnail" subField="" name="hc_content" limit="100" item="content_sub22" sort="sort asc"} + {/hcTaglib:contentPage2} + {volist name="hc_content" id="vo_content"} + + {/volist} + {/if} +
+ + +
+ + {/hcTaglib:subcategory} + +
+
+
+
+ + {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + diff --git a/public/themes/website/4/en/demo/components/empty.html b/public/themes/website/4/en/demo/components/empty.html new file mode 100644 index 0000000..1c5bbc6 --- /dev/null +++ b/public/themes/website/4/en/demo/components/empty.html @@ -0,0 +1,8 @@ +{php} +if (!isset($empty_text) || $empty_text === '') { + $empty_text = 'No related content'; +} +{/php} +
+

{$empty_text}

+
diff --git a/public/themes/website/4/en/demo/components/mask.html b/public/themes/website/4/en/demo/components/mask.html new file mode 100644 index 0000000..d90522b --- /dev/null +++ b/public/themes/website/4/en/demo/components/mask.html @@ -0,0 +1,206 @@ +
+
+ +
+ + + + + + + +
+
+
+ +
+
\ No newline at end of file diff --git a/public/themes/website/4/en/demo/contact.html b/public/themes/website/4/en/demo/contact.html new file mode 100644 index 0000000..33009d5 --- /dev/null +++ b/public/themes/website/4/en/demo/contact.html @@ -0,0 +1,307 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + {include file="components/header"} +
+
+

+ {$current_cate.sub_title}
{$current_cate.desc}
+

+
+
+ + Hotline +
+ {hcTaglib:setting name="company_phone" type="1" /} +

{$current_cate.description}

+
+
+ +
+ + +
+ +
+

+ Fill in the information below + and we will reply promptly +

+ +
+
+ + + + + + + +
+ + + + +
+
+
+ {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + + + diff --git a/public/themes/website/4/en/demo/download.html b/public/themes/website/4/en/demo/download.html new file mode 100644 index 0000000..e43424f --- /dev/null +++ b/public/themes/website/4/en/demo/download.html @@ -0,0 +1,163 @@ + + + +{php}$download_keywords = input('keywords', '');{/php} + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} +
+
+
+

{$current_cate.title}

+

{$current_cate.description}

+
+
+
+ {php} + $download_cid = (string)input('cid', ''); + $download_all_id = (string)($current_cate['id'] ?? ''); + if ($download_cid === '') { + $download_cid = $download_all_id; + } + $download_keywords = (string)input('keywords', ''); + {/php} + + {volist name="sub_cates" id="vo"} + {php} + $count = getCategoryChildrenCount($vo['id']); + $vo_id = (string)($vo['id'] ?? ''); + $group_active = false; + $group_label = $vo['title'] ?? ''; + if ($count > 0) { + $group_children = (new \app\model\Category())->where('parent_id', $vo['id'])->field('id,title')->select()->toArray(); + foreach ($group_children as $gc) { + if ((string)($gc['id'] ?? '') === $download_cid) { + $group_active = true; + $group_label = $gc['title'] ?? $group_label; + break; + } + } + } + {/php} + {if $count > 0} +
+ + +
+ {else} + + {/if} + {/volist} +
+ +
+
+ {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo" sort="sort desc"} + {php}$dl_file = $vo['url'] ?? ($vo['thumbnail']['url'] ?? '');{/php} + + {/hcTaglib:contentPage} + +
+ {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = 'No matching resources'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$hc_content|raw} + {/if} +
+
+ {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/4/en/demo/faq.html b/public/themes/website/4/en/demo/faq.html new file mode 100644 index 0000000..30795e8 --- /dev/null +++ b/public/themes/website/4/en/demo/faq.html @@ -0,0 +1,135 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + +
+
+
+

{$current_cate.title}

+

{$current_cate.description}

+
+ +
+ {php} + $filter_cid = (string)input('cid', ''); + $filter_all_id = (string)($current_cate['id'] ?? ''); + if ($filter_cid === '') { + $filter_cid = $filter_all_id; + } + $filter_keywords = (string)input('keywords', ''); + {/php} +
+ + {volist name="sub_cates" id="vo"} + {php}$vo_id = (string)($vo['id'] ?? '');{/php} + + {/volist} +
+ +
+ +
+ {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="10" item="vo"} +
+ +
+

+ {$vo.content|strip_tags} +

+
+
+ {/hcTaglib:contentPage} +
+ {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = 'No matching FAQs'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$hc_content|raw} + {/if} +
+
+ {include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + diff --git a/public/themes/website/4/en/demo/investment.html b/public/themes/website/4/en/demo/investment.html new file mode 100644 index 0000000..83a3057 --- /dev/null +++ b/public/themes/website/4/en/demo/investment.html @@ -0,0 +1,288 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + {include file="components/header"} +
+
+
+

+ {$current_cate.content|raw} +

+
+ +
+ {php} + $ui_invest_info = uiId('invest_info'); + $ui_invest_announce = uiId('invest_announce'); + $ui_invest_stock = uiId('invest_stock'); + $ui_invest_learn = uiId('invest_learn'); + $ui_invest_hotline = uiId('invest_hotline'); + {/php} + {hcTaglib:category id="$ui_invest_info" item="vo" field="*"} + {php} + $descStr = $vo['description'] ?? ''; + $infoList = []; + $pairs = explode('#', $descStr); + foreach ($pairs as $pair) { + $parts = explode(';', $pair, 2); + if (count($parts) === 2) { + $infoList[] = ['label' => trim($parts[0]), 'value' => trim($parts[1])]; + } + } + {/php} +
+

{$vo.title}

+
+ {volist name="infoList" id="info" key="k"} +
+ {$info.label} + {$info.value} +
+ {/volist} +
+
+ {/hcTaglib:category} + {hcTaglib:category id="$ui_invest_announce" item="vo" field="*"} +
+
+

{$vo.title}

+
+ + +
+
+
+
+ {hcTaglib:contentPage cid="$ui_invest_announce" mainField="*" subField="*" name="hc_content" limit="12" item="vo"} + + {/hcTaglib:contentPage} +
+
+
+
+ + +
+
+
+ {/hcTaglib:category} + {hcTaglib:category id="$ui_invest_stock" item="vo" field="*"} +
+

{$vo.title}

+
+
+

Stock code: {$stockInfo.code}

+
+ {$stockInfo.price} + Yuan + {$stockInfo.change}  {$stockInfo.changePercent} +
+
    +
  • + High (Yuan) + {$stockInfo.high} +
  • +
  • + Low (Yuan) + {$stockInfo.low} +
  • +
  • + Volume (10k lots) + {$stockInfo.volume} +
  • +
  • + Turnover (CNY 10k) + {$stockInfo.amount} +
  • +
+

As of {$stockInfo.updateTime}* Quotes delayed by 15 minutes or more.

+
+
+ RAYNEN intraday chart +
+
+
+ {/hcTaglib:category} + + {hcTaglib:category id="$ui_invest_learn" item="vo" field="*"} +
+

{$vo.title}

+
+ + +
+
+ {/hcTaglib:category} + + {hcTaglib:category id="$ui_invest_hotline" item="vo" field="*"} +
+ +
+

{$vo.title}

+ +
+
+ {/hcTaglib:category} +
+ + {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/4/en/demo/news-detail.html b/public/themes/website/4/en/demo/news-detail.html new file mode 100644 index 0000000..9756296 --- /dev/null +++ b/public/themes/website/4/en/demo/news-detail.html @@ -0,0 +1,217 @@ + + + {php} // TDK设置 ================================= START + $tdk_title = $hc_content['seo_title'] ?? ''; + if(empty($tdk_title)){ + $tdk_title = $hc_content['title'] ?? 'Search results'; + } + $tdk_description = $hc_content['seo_description'] ?? ''; + if(empty($tdk_description)){ + $tdk_description = $hc_content['sub_title'] ?? ''; + } + $tdk_keywords = $hc_content['seo_keywords'] ?? ''; + if(empty($tdk_keywords)){ + $tdk_keywords = $hc_content['sub_title'] ?? ''; + } + + $create_time_str = $hc_content['create_time'] ?? ''; + $hc_content_tmp_news = $hc_content; + // dd($hc_content); + // dd($create_time_int); + // TDK设置 ================================= END {/php} + + + + + {$tdk_title} + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+
+
+ + + + + Back + + +
+
+

{$hc_content_tmp_news['title']}

+ +
+ +
+ {$hc_content_tmp_news['content']|raw} +
+ + + +
+
+
+
+ + {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + diff --git a/public/themes/website/4/en/demo/news.html b/public/themes/website/4/en/demo/news.html new file mode 100644 index 0000000..8097e84 --- /dev/null +++ b/public/themes/website/4/en/demo/news.html @@ -0,0 +1,281 @@ + + + + + {php} + $current_cate_id = $current_cate['id'] ?? ''; + // var_dump($current_cate);exit; + {/php} + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + +
+ {php}$news_root_id = uiId('news');{/php} + {hcTaglib:category id="$news_root_id" item="vo" field="id,title,alias"} + {php} + $news_cate_info = $vo; + $news_cate_info_alias = $vo['alias'] ?? ''; + {/php} + {/hcTaglib:category} +
+
+

+ Learn about RAYNEN + News +

+
+ {php} + $news_active_cat = (string)input('cat', ''); + if ($news_active_cat === '' || $news_active_cat === 'all') { + $news_active_cat = (string)($current_cate_id ?: ($news_cate_info['id'] ?? '')); + } + $news_all_cat = (string)($news_cate_info['id'] ?? ''); + $news_video_id = (string)uiId('news_video'); + $is_news_video = ($news_video_id !== '' && $news_video_id !== '0' && $news_active_cat === $news_video_id); + {/php} + All + {hcTaglib:subcategory pid="$news_cate_info['id']" item="vo" sort=""} + {$vo.title} + {/hcTaglib:subcategory} +
+
+ + {hcTaglib:contentPage2 cid="$current_cate_id" mainField="id,category_id,title,sub_title,thumbnail,content,description,create_time,is_top" subField="" name="hc_featured" limit="100" item="content_sub22" isTop="1"} + {/hcTaglib:contentPage2} + {php} + $news_has_featured = false; + if (!empty($hc_featured)) { + if (is_object($hc_featured) && method_exists($hc_featured, 'isEmpty')) { + $news_has_featured = !$hc_featured->isEmpty(); + } elseif (is_countable($hc_featured)) { + $news_has_featured = count($hc_featured) > 0; + } + } + {/php} + {if $news_has_featured && !$is_news_video} + + {/if} + +
+ + {hcTaglib:contentPage2 cid="$current_cate_id" mainField="id,category_id,title,sub_title,thumbnail,cover,content,description,create_time,publish_time,is_top" subField="" name="hc_content" limit="6" item="content_sub22" isTop="222"} + {/hcTaglib:contentPage2} + + {volist name="hc_content" id="vo_content"} + {php} + $content = $vo_content['content'] ?? ''; + $description = $vo_content['description'] ?? ''; + $create_time_str = $vo_content['publish_time'] ?? $vo_content['create_time']; + {/php} + + {if $is_news_video} + + {else /} + {php} + $is_item_video = ($news_video_id !== '' && $news_video_id !== '0' && (string)($vo_content['category_id'] ?? '') === $news_video_id); + {/php} +
+
+ +

{$vo_content.title}

+ {if !$is_item_video} + + Explore more + + + {/if} +
+
+ + {if $is_item_video} + {notempty name="description"} + {$description} + {/notempty} + + {/if} +
+
+ {/if} + {/volist} + +
+ + {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = $is_news_video ? 'No matching videos' : 'No matching news'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + + {$hc_content|raw} + {/if} + + + +
+
+{include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/4/en/demo/product.html b/public/themes/website/4/en/demo/product.html new file mode 100644 index 0000000..5260b23 --- /dev/null +++ b/public/themes/website/4/en/demo/product.html @@ -0,0 +1,484 @@ + + +{php} +// var_dump($hc_content);exit; +// 基本信息 +$id = $hc_content['id'] ?? ''; +$category_id = $hc_content['category_id'] ?? ''; +$sub_category_ids = $hc_content['sub_category_ids'] ?? ''; +$module_id = $hc_content['module_id'] ?? ''; +$lang = $hc_content['lang'] ?? ''; +$main_id = $hc_content['main_id'] ?? ''; +$title = $hc_content['title'] ?? ''; +$sub_title = $hc_content['sub_title'] ?? ''; +$description = $hc_content['description'] ?? ''; +$content = $hc_content['content'] ?? ''; +$cover = $hc_content['cover'] ?? ''; +$hits = $hc_content['hits'] ?? ''; +$admin_id = $hc_content['admin_id'] ?? ''; +$author = $hc_content['author'] ?? ''; +$status = $hc_content['status'] ?? ''; +$check_status = $hc_content['check_status'] ?? ''; +$url = $hc_content['url'] ?? ''; +$publish_time = $hc_content['publish_time'] ?? ''; +$is_top = $hc_content['is_top'] ?? ''; +$top_time = $hc_content['top_time'] ?? ''; +$is_recommend = $hc_content['is_recommend'] ?? ''; +$sort = $hc_content['sort'] ?? ''; +$detail_tpl = $hc_content['detail_tpl'] ?? ''; +$seo_title = $hc_content['seo_title'] ?? ''; +$seo_keyword = $hc_content['seo_keyword'] ?? ''; +$seo_description = $hc_content['seo_description'] ?? ''; +$version = $hc_content['version'] ?? ''; +$show_version = $hc_content['show_version'] ?? ''; +$is_del = $hc_content['is_del'] ?? ''; +$del_user_id = $hc_content['del_user_id'] ?? ''; +$delete_time = $hc_content['delete_time'] ?? ''; +$create_time = $hc_content['create_time'] ?? ''; +$update_time = $hc_content['update_time'] ?? ''; +$tag = $hc_content['tag'] ?? []; + +// 缩略图 +$thumbnail = (array)($hc_content['thumbnail'] ?? []); +$thumbnail_id = $thumbnail['id'] ?? ''; +$thumbnail_name = $thumbnail['name'] ?? ''; +$thumbnail_url = $thumbnail['url'] ?? ''; +$thumbnail_type = $thumbnail['type'] ?? ''; +$thumbnail_description = $thumbnail['description'] ?? ''; + +// 扩展内容 +$main_content = $hc_content['main_content'] ?? []; +$main_content_id = $main_content['id'] ?? ''; +$rich_text_two = $main_content['rich_text_two'] ?? ''; +$pic_many_one = $main_content['pic_many_one'] ?? []; // 产品介绍多图 +$pic_many = $main_content['pic_many'] ?? []; // 规格参数展示图集 +$rich_text_three = $main_content['rich_text_three'] ?? ''; // 规格参数第一个富文本框 +$rich_text_four = $main_content['rich_text_four'] ?? ''; +$rich_text_five = $main_content['rich_text_five'] ?? ''; +$rich_text_six = $main_content['rich_text_six'] ?? ''; +$rich_text_seven = $main_content['rich_text_seven'] ?? ''; +$resource_download_names = $main_content['resource_download_names'] ?? ''; // 下载文件自定义名称 +$atlas = $main_content['atlas'] ?? []; +$file = $main_content['file'] ?? ''; +$content_desc = $main_content['content_desc'] ?? ''; +$mc_lang = $main_content['lang'] ?? ''; +$lang_pid = $main_content['lang_pid'] ?? ''; +$sub_id = $main_content['sub_id'] ?? ''; +$mc_create_time = $main_content['create_time'] ?? ''; +$mc_update_time = $main_content['update_time'] ?? ''; + +// 资源图片 +$resource_pic = (array)($main_content['resource_pic'] ?? []); +$resource_pic_id = $resource_pic['id'] ?? ''; +$resource_pic_name = $resource_pic['name'] ?? ''; +$resource_pic_url = $resource_pic['url'] ?? ''; +$resource_pic_type = $resource_pic['type'] ?? ''; +$resource_pic_description = $resource_pic['description'] ?? ''; +$resource_pic_children = $resource_pic['children'] ?? []; + +// 资源下载 +$resource_download = $main_content['resource_download'] ?? []; +{/php} + + + + + {$title} - RAYNEN + + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + + + +
+
+
+

{$title}

+ View selection table +
+ + {$thumbnail_name} +
+
+
+ + +
+
+
+ + +
+ +
+ {$rich_text_two|raw} +
+
+
+ + +
+
+

Specifications

+ +
+ Models + +
+ +
+ {volist name="pic_many" id="vo" key="key"} +
+ {switch $key} + {case 1}{$rich_text_three|raw}{/case} + {case 2}{$rich_text_four|raw}{/case} + {case 3}{$rich_text_five|raw}{/case} + {case 4}{$rich_text_six|raw}{/case} + {case 5}{$rich_text_seven|raw}{/case} + {default /}No matching content + {/switch} +
+ {/volist} + + {if $total_standard_num == 0} + + {$rich_text_three|raw} + {/if} + +
+
+
+ + + + {php} + // 1. 直接按照 %% 分割 + $mainArray = explode("%%", $resource_download_names); + $download_names = []; + // 2. 遍历并拆分 + foreach ($mainArray as $item) { + if (trim($item) !== '' && !empty($item)) { + $download_names[] = explode("##", trim($item)); + } + } + // 文件匹配 + $map = [ + 'png' => 'Image', + 'jpg' => 'Image', + 'jpeg' => 'Image', + 'pdf' => 'PDF', + 'doc' => 'DOC', + 'docx' => 'DOC', + 'zip' => 'Archive', + '7z' => 'Archive', + 'rar' => 'Archive', + ]; + + {/php} +
+
+
+ Downloads preview +
+
+

Downloads

+
    + {volist name="resource_download" id="one_resource" key="key"} + {php} + $downloadUrl = $one_resource['url'] ?? ''; + $nameTmp = $download_names[$key-1][0] ?? ($one_resource['name'] ?? 'File-'.$key); + $descTmp = $download_names[$key-1][1] ?? ('Description-'.$key); + $dateTmp = $download_names[$key-1][2] ?? ('Date-'.$key); + $ext = strtolower(pathinfo($one_resource['url'], PATHINFO_EXTENSION)); + $file_type_name = $map[$ext] ?? 'Unknown file'; + // 下载文件名与页面展示名一致(展示名未带扩展名时补充) + $download_name = ($ext !== '' && strtolower(pathinfo($nameTmp, PATHINFO_EXTENSION)) === $ext) ? $nameTmp : rtrim($nameTmp, '.') . '.' . $ext; + {/php} +
  • +
    +

    + {$nameTmp} +

    +

    + {$descTmp} + + +

    +
    + + + + + + + + + + Download {$file_type_name} + +
  • + {/volist} + +
+
+
+
+ + + +
+ +{include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + diff --git a/public/themes/website/4/en/demo/search.html b/public/themes/website/4/en/demo/search.html new file mode 100644 index 0000000..3887293 --- /dev/null +++ b/public/themes/website/4/en/demo/search.html @@ -0,0 +1,192 @@ + + +{php} +dd('此页面废弃'); +{/php} + + + + + + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+
+
+

Search

+ +
+ Popular searches: +
+ + + +
+
+
+ +
+ + + + + +
+ +
+ {volist name="list" id="vo"} + {php} + $sr_date = ''; + $sr_time = $vo['publish_time'] ?? ($vo['create_time'] ?? ''); + if (!empty($sr_time)) { + $sr_date = is_numeric($sr_time) ? date('Y-m-d', (int)$sr_time) : $sr_time; + } + $sr_cid = $vo['category_id'] ?? ($vo['category'][0]['id'] ?? 0); + $sr_thumb = is_array($vo['thumbnail'] ?? null) ? ($vo['thumbnail']['url'] ?? '') : ''; + $sr_url = hcUrl('detail/index', ['id' => $vo['id'], 'cid' => $sr_cid]); + $sr_cate_title = $vo['category'][0]['title'] ?? ''; + $sr_type = 'other'; + if (mb_strpos($sr_cate_title, '产品') !== false) { + $sr_type = 'product'; + } elseif (mb_strpos($sr_cate_title, '解决方案') !== false || mb_strpos($sr_cate_title, '方案') !== false) { + $sr_type = 'solution'; + } elseif (mb_strpos($sr_cate_title, '新闻') !== false) { + $sr_type = 'news'; + } elseif (mb_strpos($sr_cate_title, '常见问题') !== false || mb_strpos($sr_cate_title, 'FAQ') !== false || mb_strpos($sr_cate_title, '问题') !== false) { + $sr_type = 'faq'; + } + {/php} +
+ + + +
+
+
+ {if !empty($vo['category'][0]['title'])}{$vo.category.0.title}{else /}Content{/if} + + +
+

+ {$vo.title} +

+ {notempty name="vo.description"} +

{$vo.description}

+ {/notempty} +
+ + Explore more + + + + + +
+
+ {/volist} +
+ + + + {php} + $list_empty = isHcListEmpty($list ?? null); + if ($list_empty) { + $empty_text = 'No matching results. Try another keyword'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$list_page|raw} + {/if} +
+
+ + {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + diff --git a/public/themes/website/4/en/demo/solution.html b/public/themes/website/4/en/demo/solution.html new file mode 100644 index 0000000..af039c0 --- /dev/null +++ b/public/themes/website/4/en/demo/solution.html @@ -0,0 +1,259 @@ + + + + + + + {$current_cate['seo_title']} + + + + + + + + + + + + + + + + + + + +{include file="components/header"} +
+ {if !empty($sub_cates[0])} +
+
+

{$sub_cates[0]['title'] ?? ''}

+

+ {$sub_cates[0]['description'] ?? ''} +

+
+ +
+ {/if} + {if !empty($sub_cates[1])} +
+

{$sub_cates[1]['title'] ?? ''}

+
    + {php} + $contents = getContentByCategory($sub_cates[1]['id'], $seller_id, 6, 'sort asc', ['thumbnail', 'category']); + {/php} + {volist name="contents" id="vo"} +
  • +

    {$vo['title'] ?? ''}

    +

    {$vo['description'] ?? ''}

    +
  • + {/volist} +
+
+ {/if} + {if !empty($sub_cates[2])} +
+

{$sub_cates[2]['title'] ?? ''}

+
+ {$sub_cates[2]['description'] ?? ''} +
+
+ {/if} + {if !empty($sub_cates[3])} +
+
+

{$sub_cates[3]['title'] ?? ''}

+
+ + +
+
+
+
+ {php} + $contents = getMixContentBySolutionName($current_cate['title'],$sub_cates[3]['id'],$seller_id, 6); + {/php} + {volist name="contents" id="vo"} + + {/volist} +
+
+
+
+ + +
+
+
+{/if} + {if !empty($sub_cates[4])} +
+

{$sub_cates[4]['title'] ?? ''}

+ {php} + $contents = getContentByCategory($sub_cates[4]['id'], $seller_id, 20, 'sort asc', ['thumbnail', 'category']); + $clients_marquee = is_array($contents) && count($contents) > 5; + {/php} +
+
+ {volist name="contents" id="vo"} +
+ {/volist} + {if $clients_marquee} + {volist name="contents" id="vo"} + + {/volist} + {/if} +
+
+
+ {/if} + {if !empty($sub_cates[5])} +
+

{$sub_cates[5]['title'] ?? ''}

+
+ +
+
+
+ {php} + $contents = getContentByCategory($sub_cates[5]['id'], $seller_id, 6, 'sort asc', ['thumbnail', 'category']); + {/php} + {volist name="contents" id="vo"} +
+

{$vo['title'] ?? ''}

+

{$vo['sub_title'] ?? ''}

+

{$vo['description'] ?? ''}

+
+ {php}$descArr = explode(',',$vo['seo_description']);{/php} + {if !empty($descArr)} + {volist name="descArr" id="vv"} + {$vv} + {/volist} + {/if} +
+
+ {/volist} +
+
+
+
+ + +
+
+ 1 + / + 4 +
+
+
+
+
+ {/if} +
+ + {include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + + diff --git a/public/themes/website/4/en/demo/solution2.html b/public/themes/website/4/en/demo/solution2.html new file mode 100644 index 0000000..4f3e11c --- /dev/null +++ b/public/themes/website/4/en/demo/solution2.html @@ -0,0 +1,281 @@ + + + +{php} +$current_cate_id = $current_cate['id'] ?? 0; +{/php} + + + + + {$current_cate['seo_title']} + + + + + + + + + + + + + + + + + + +{include file="components/header"} +
+ + {if !empty($sub_cates[0])} +
+
+

{$sub_cates[0]['title'] ?? ''}

+

+ {$sub_cates[0]['description'] ?? ''} +

+
+ +
+ {/if} + + {if !empty($sub_cates[1])} +
+

{$sub_cates[1]['title'] ?? ''}

+
    + {php} + $contents = getContentByCategory($sub_cates[1]['id'], $seller_id, 6, 'sort asc', ['thumbnail', 'category']); + {/php} + {volist name="contents" id="vo"} +
  • + +

    {$vo.title ?? ''}

    +

    {$vo.description ?? ''}

    +
  • + {/volist} +
+
+ {/if} + {if !empty($sub_cates[2])} +
+

{$sub_cates[2]['title'] ?? ''}

+
+ {$sub_cates[2]['description'] ?? ''} +
+
+ {/if} + {if !empty($sub_cates[3])} +
+
+

{$sub_cates[3]['title'] ?? ''}

+
+ + +
+
+
+
+ {php} + $products = getArticlesBySolutionName($current_cate['title'],$seller_id,6); + {/php} + {volist name="products" id="vo"} +
+
+

{$vo.title ?? ''}

+

{$vo.description ?? ''}

+ Explore more +
+
+ {$vo.title ?? ''} +
+
+ {/volist} +
+
+
+
+ {/if} + {if !empty($sub_cates[4])} + + + {/if} + {if !empty($sub_cates[5])} + +
+
+

{$sub_cates[5]['title'] ?? ''}

+
+ + +
+
+ +
+
+ {php}$others = getOtherCategoryCategoryId($current_cate['id'],$seller_id,5);{/php} + {volist name="others" id="vo"} + + {/volist} +
+
+
+
+ + +
+
+
+ {/if} +
+ + {include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/4/en/demo/video.html b/public/themes/website/4/en/demo/video.html new file mode 100644 index 0000000..4171930 --- /dev/null +++ b/public/themes/website/4/en/demo/video.html @@ -0,0 +1,166 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+
+
+

{$current_cate.title}

+

{$current_cate.description}

+
+ +
+ {php} + $filter_cid = (string)input('cid', ''); + $filter_all_id = (string)($current_cate['id'] ?? ''); + if ($filter_cid === '') { + $filter_cid = $filter_all_id; + } + $filter_keywords = (string)input('keywords', ''); + $filter_is_all = ($filter_cid === $filter_all_id); + $filter_label = 'Filter by product'; + if (!$filter_is_all && !empty($sub_cates)) { + foreach ($sub_cates as $sc) { + if ((string)($sc['id'] ?? '') === $filter_cid) { + $filter_label = $sc['title'] ?? $filter_label; + break; + } + } + } + {/php} +
+ + +
+ +
+ +
+ {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo"} + + {/hcTaglib:contentPage} +
+ {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = 'No matching videos'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$hc_content|raw} + {/if} + + +
+
+ {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/4/zh/demo/about-history.html b/public/themes/website/4/zh/demo/about-history.html new file mode 100644 index 0000000..01cdc8d --- /dev/null +++ b/public/themes/website/4/zh/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/4/zh/demo/about.html b/public/themes/website/4/zh/demo/about.html new file mode 100644 index 0000000..3fca20c --- /dev/null +++ b/public/themes/website/4/zh/demo/about.html @@ -0,0 +1,354 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + +
+
+
+

+ {$current_cate.content|raw} +

+
+ +
+ {php} + $ui_about_intro = uiId('about_intro'); + $ui_about_history = uiId('about_history'); + $ui_about_culture = uiId('about_culture'); + $ui_about_global = uiId('about_global'); + $ui_about_members = uiId('about_members'); + $ui_about_honors = uiId('about_honors'); + $ui_about_csr = uiId('about_csr'); + $ui_download_csr = uiId('download_csr'); + $csr_report_href = getMuiLangUrl('/download.html'); + if ($ui_download_csr > 0) { + $csr_report_href .= '?cid=' . $ui_download_csr; + } + {/php} + {hcTaglib:category id="$ui_about_intro" item="vo" field="*"} +
+

{$vo.title}

+
+
+

{:nl2br($vo.description)}

+
+ {php} + $stats_raw = explode(',', $vo['desc']); + $stats_list = []; + foreach ($stats_raw as $item) { + $parts = explode(';', $item); + if (count($parts) === 3) { + $stats_list[] = ['num' => $parts[0], 'unit' => $parts[1], 'text' => $parts[2]]; + } + } + {/php} +
    + {volist name="stats_list" id="stat"} +
  • + {$stat.num}{$stat.unit} + {$stat.text} +
  • + {/volist} +
+
+
+ {/hcTaglib:category} + + + {hcTaglib:category id="$ui_about_history" item="vo" field="*"} +
+
+

{$vo.title}

+
+ + +
+
+
+
+ {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="9999" mainField="id,title,sub_title,content,thumbnail" sort="sort desc" subField="" onlyData="2"} + + {/hcTaglib:content} +
+
+
+
+ + +
+
+
+ {/hcTaglib:category} + {hcTaglib:category id="$ui_about_culture" item="vo" field="*"} +
+ +
+

{$vo.title}

+ {php} + $culture_raw = explode('#', $vo['description']); + $culture_list = []; + foreach ($culture_raw as $item) { + $parts = explode(';', $item); + if (count($parts) === 3) { + $culture_list[] = ['zh' => $parts[0], 'en' => $parts[1], 'text' => $parts[2]]; + } + } + {/php} +
+ {volist name="culture_list" id="culture"} +
+
+ {$culture.zh} + {$culture.en} +
+

{$culture.text|raw}

+
+ {/volist} +
+
+
+ {/hcTaglib:category} + + {hcTaglib:category id="$ui_about_global" item="vo" field="*"} +
+

{$vo.title}

+ {php} + $global_raw = explode(',', $vo['description']); + $global_list = []; + foreach ($global_raw as $item) { + $parts = explode(';', $item, 3); + if (count($parts) >= 2) { + $desc = isset($parts[2]) ? str_replace(';', '
', $parts[2]) : ''; + $global_list[] = ['num' => $parts[0], 'unit' => $parts[1], 'desc' => $desc]; + } + } + $global_left = array_slice($global_list, 0, 3); + $global_right = array_slice($global_list, 3); + {/php} +
+
    + {volist name="global_left" id="item"} +
  • + {$item.num}{$item.unit} + {if $item.desc}{$item.desc|raw}{/if} +
  • + {/volist} +
+
+ +
+
    + {volist name="global_right" id="item"} +
  • + {$item.num}{$item.unit} + {if $item.desc}{$item.desc|raw}{/if} +
  • + {/volist} +
+
+
+ {/hcTaglib:category} + + {hcTaglib:category id="$ui_about_members" item="vo" field="*"} +
+ +
+

{$vo.title}

+
+
+
+ {php}$member_idx = 0;{/php} + {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="50" mainField="id,url,title,sub_title,content,thumbnail" sort="sort asc" subField="" onlyData="2"} +
+
+
+

{$case_top.title}

+

+ {$case_top.content|strip_tags} +

+
+ 探索更多 +
+
+ {php}$member_idx++;{/php} + {/hcTaglib:content} +
+
+
+ {php}$member_idx = 0;{/php} + {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="50" mainField="id,title,sub_title,content,thumbnail" sort="sort asc" subField="" onlyData="2"} + + {php}$member_idx++;{/php} + {/hcTaglib:content} +
+
+
+
+ {/hcTaglib:category} + + {hcTaglib:category id="$ui_about_honors" item="vo" field="*"} +
+
+

{$vo.title}

+

{$vo.description}

+
+
+
    + {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="999" mainField="id,url,title,sub_title,content,thumbnail" sort="sort asc" subField="" onlyData="2"} +
  • + {$case_top.title} + + + + + + + + + 查看证书 + + +
  • + {/hcTaglib:content} +
+ +
+
+ {/hcTaglib:category} + + {hcTaglib:category id="$ui_about_csr" item="vo" field="*"} +
+ +
+

{$vo.title}

+
+

+ {$vo.description} +

+ 社会责任报告 +
+
+
+ {/hcTaglib:category} +
+ + {include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/4/zh/demo/announce.html b/public/themes/website/4/zh/demo/announce.html new file mode 100644 index 0000000..cd76e73 --- /dev/null +++ b/public/themes/website/4/zh/demo/announce.html @@ -0,0 +1,150 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+
+
+

{$current_cate.title}

+

{$current_cate.description}

+
+ +
+ {php} + $filter_cid = (string)input('cid', ''); + $filter_all_id = (string)($current_cate['id'] ?? ''); + if ($filter_cid === '') { + $filter_cid = $filter_all_id; + } + $filter_keywords = (string)input('keywords', ''); + $filter_is_all = ($filter_cid === $filter_all_id); + $filter_label = '按产品筛选'; + if (!$filter_is_all && !empty($sub_cates)) { + foreach ($sub_cates as $sc) { + if ((string)($sc['id'] ?? '') === $filter_cid) { + $filter_label = $sc['title'] ?? $filter_label; + break; + } + } + } + {/php} +
+ + +
+ +
+ +
+ {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="8" item="vo"} + + +

{$vo.title}

+ + 探索更多 + + + + + +
+ {/hcTaglib:contentPage} +
+ {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = '暂无相关公告'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$hc_content|raw} + {/if} +
+
+ {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + diff --git a/public/themes/website/4/zh/demo/category.html b/public/themes/website/4/zh/demo/category.html new file mode 100644 index 0000000..f0bf4ac --- /dev/null +++ b/public/themes/website/4/zh/demo/category.html @@ -0,0 +1,228 @@ + + +{php} +// var_dump($current_cate); +$current_cate_id = $current_cate['id'] ?? ''; +//exit(); +{/php} + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+ {php}$ui_product = uiId('product');{/php} +
+ + +
+ + +
+ {hcTaglib:subcategory pid="$ui_product" item="vo" sort="" key="key_top"} + {php} + $sub_cate_id = $vo['id']; + $need_show_sub_content = (int)($vo['need_show_sub_content'] ?? 0); + {/php} + {hcTaglib:subcategory pid="$sub_cate_id" onlyData="1"} + {/hcTaglib:subcategory} + {php} + $level2_list = $hc_subcategory ?? []; + $has_level2 = !empty($level2_list); + {/php} + +
+
+ {if $has_level2} + {volist name="level2_list" id="vo_sub" key="key_sub"} + {hcTaglib:contentPage2 cid="$vo_sub.id" mainField="id,category_id,title,sub_title,thumbnail" subField="" name="hc_content" limit="100" item="content_sub22" sort="sort asc"} + {/hcTaglib:contentPage2} + {volist name="hc_content" id="vo_content"} + + {/volist} + {/volist} + {else /} + + {hcTaglib:contentPage2 cid="$vo.id" mainField="id,category_id,title,sub_title,thumbnail" subField="" name="hc_content" limit="100" item="content_sub22" sort="sort asc"} + {/hcTaglib:contentPage2} + {volist name="hc_content" id="vo_content"} + + {/volist} + {/if} +
+ + +
+ + {/hcTaglib:subcategory} + +
+
+
+
+ + {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + diff --git a/public/themes/website/4/zh/demo/components/empty.html b/public/themes/website/4/zh/demo/components/empty.html new file mode 100644 index 0000000..84b80ab --- /dev/null +++ b/public/themes/website/4/zh/demo/components/empty.html @@ -0,0 +1,8 @@ +{php} +if (!isset($empty_text) || $empty_text === '') { + $empty_text = '暂无相关内容'; +} +{/php} +
+

{$empty_text}

+
diff --git a/public/themes/website/4/zh/demo/components/mask.html b/public/themes/website/4/zh/demo/components/mask.html new file mode 100644 index 0000000..76d568a --- /dev/null +++ b/public/themes/website/4/zh/demo/components/mask.html @@ -0,0 +1,206 @@ +
+
+ +
+ + + + + + + +
+
+
+ +
+
\ No newline at end of file diff --git a/public/themes/website/4/zh/demo/contact.html b/public/themes/website/4/zh/demo/contact.html new file mode 100644 index 0000000..f4d10ce --- /dev/null +++ b/public/themes/website/4/zh/demo/contact.html @@ -0,0 +1,307 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + {include file="components/header"} +
+
+

+ {$current_cate.sub_title}
{$current_cate.desc}
+

+
+
+ + 客服热线 +
+ {hcTaglib:setting name="company_phone" type="1" /} +

{$current_cate.description}

+
+
+ +
+ + +
+ +
+

+ 填写以下信息我们 + 第一时间回复 +

+ +
+
+ + + + + + + +
+ + + + +
+
+
+ {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + + + diff --git a/public/themes/website/4/zh/demo/download.html b/public/themes/website/4/zh/demo/download.html new file mode 100644 index 0000000..3fb126c --- /dev/null +++ b/public/themes/website/4/zh/demo/download.html @@ -0,0 +1,163 @@ + + + +{php}$download_keywords = input('keywords', '');{/php} + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} +
+
+
+

{$current_cate.title}

+

{$current_cate.description}

+
+
+
+ {php} + $download_cid = (string)input('cid', ''); + $download_all_id = (string)($current_cate['id'] ?? ''); + if ($download_cid === '') { + $download_cid = $download_all_id; + } + $download_keywords = (string)input('keywords', ''); + {/php} + + {volist name="sub_cates" id="vo"} + {php} + $count = getCategoryChildrenCount($vo['id']); + $vo_id = (string)($vo['id'] ?? ''); + $group_active = false; + $group_label = $vo['title'] ?? ''; + if ($count > 0) { + $group_children = (new \app\model\Category())->where('parent_id', $vo['id'])->field('id,title')->select()->toArray(); + foreach ($group_children as $gc) { + if ((string)($gc['id'] ?? '') === $download_cid) { + $group_active = true; + $group_label = $gc['title'] ?? $group_label; + break; + } + } + } + {/php} + {if $count > 0} +
+ + +
+ {else} + + {/if} + {/volist} +
+ +
+
+ {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo" sort="sort desc"} + {php}$dl_file = $vo['url'] ?? ($vo['thumbnail']['url'] ?? '');{/php} + + {/hcTaglib:contentPage} + +
+ {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = '暂无相关资料'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$hc_content|raw} + {/if} +
+
+ {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/4/zh/demo/faq.html b/public/themes/website/4/zh/demo/faq.html new file mode 100644 index 0000000..66fe77e --- /dev/null +++ b/public/themes/website/4/zh/demo/faq.html @@ -0,0 +1,135 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + +
+
+
+

{$current_cate.title}

+

{$current_cate.description}

+
+ +
+ {php} + $filter_cid = (string)input('cid', ''); + $filter_all_id = (string)($current_cate['id'] ?? ''); + if ($filter_cid === '') { + $filter_cid = $filter_all_id; + } + $filter_keywords = (string)input('keywords', ''); + {/php} +
+ + {volist name="sub_cates" id="vo"} + {php}$vo_id = (string)($vo['id'] ?? '');{/php} + + {/volist} +
+ +
+ +
+ {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="10" item="vo"} +
+ +
+

+ {$vo.content|strip_tags} +

+
+
+ {/hcTaglib:contentPage} +
+ {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = '暂无相关问题'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$hc_content|raw} + {/if} +
+
+ {include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + diff --git a/public/themes/website/4/zh/demo/investment.html b/public/themes/website/4/zh/demo/investment.html new file mode 100644 index 0000000..778118c --- /dev/null +++ b/public/themes/website/4/zh/demo/investment.html @@ -0,0 +1,288 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + {include file="components/header"} +
+
+
+

+ {$current_cate.content|raw} +

+
+ +
+ {php} + $ui_invest_info = uiId('invest_info'); + $ui_invest_announce = uiId('invest_announce'); + $ui_invest_stock = uiId('invest_stock'); + $ui_invest_learn = uiId('invest_learn'); + $ui_invest_hotline = uiId('invest_hotline'); + {/php} + {hcTaglib:category id="$ui_invest_info" item="vo" field="*"} + {php} + $descStr = $vo['description'] ?? ''; + $infoList = []; + $pairs = explode('#', $descStr); + foreach ($pairs as $pair) { + $parts = explode(';', $pair, 2); + if (count($parts) === 2) { + $infoList[] = ['label' => trim($parts[0]), 'value' => trim($parts[1])]; + } + } + {/php} +
+

{$vo.title}

+
+ {volist name="infoList" id="info" key="k"} +
+ {$info.label} + {$info.value} +
+ {/volist} +
+
+ {/hcTaglib:category} + {hcTaglib:category id="$ui_invest_announce" item="vo" field="*"} +
+
+

{$vo.title}

+
+ + +
+
+
+
+ {hcTaglib:contentPage cid="$ui_invest_announce" mainField="*" subField="*" name="hc_content" limit="12" item="vo"} + + {/hcTaglib:contentPage} +
+
+
+
+ + +
+
+
+ {/hcTaglib:category} + {hcTaglib:category id="$ui_invest_stock" item="vo" field="*"} +
+

{$vo.title}

+
+
+

股票代码:{$stockInfo.code}

+
+ {$stockInfo.price} + + {$stockInfo.change}  {$stockInfo.changePercent} +
+
    +
  • + 最高(元) + {$stockInfo.high} +
  • +
  • + 最低(元) + {$stockInfo.low} +
  • +
  • + 成交量(万手) + {$stockInfo.volume} +
  • +
  • + 成交额(万元) + {$stockInfo.amount} +
  • +
+

截止 {$stockInfo.updateTime}*报价有十五分钟或以上延迟。

+
+
+ 睿能科技分时走势图 +
+
+
+ {/hcTaglib:category} + + {hcTaglib:category id="$ui_invest_learn" item="vo" field="*"} +
+

{$vo.title}

+
+ + +
+
+ {/hcTaglib:category} + + {hcTaglib:category id="$ui_invest_hotline" item="vo" field="*"} +
+ +
+

{$vo.title}

+ +
+
+ {/hcTaglib:category} +
+ + {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/4/zh/demo/news-detail.html b/public/themes/website/4/zh/demo/news-detail.html new file mode 100644 index 0000000..42fb568 --- /dev/null +++ b/public/themes/website/4/zh/demo/news-detail.html @@ -0,0 +1,217 @@ + + + {php} // TDK设置 ================================= START + $tdk_title = $hc_content['seo_title'] ?? ''; + if(empty($tdk_title)){ + $tdk_title = $hc_content['title'] ?? '搜索结果'; + } + $tdk_description = $hc_content['seo_description'] ?? ''; + if(empty($tdk_description)){ + $tdk_description = $hc_content['sub_title'] ?? ''; + } + $tdk_keywords = $hc_content['seo_keywords'] ?? ''; + if(empty($tdk_keywords)){ + $tdk_keywords = $hc_content['sub_title'] ?? ''; + } + + $create_time_str = $hc_content['create_time'] ?? ''; + $hc_content_tmp_news = $hc_content; + // dd($hc_content); + // dd($create_time_int); + // TDK设置 ================================= END {/php} + + + + + {$tdk_title} + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+
+
+ + + + + Back + + +
+
+

{$hc_content_tmp_news['title']}

+ +
+ +
+ {$hc_content_tmp_news['content']|raw} +
+ + + +
+
+
+
+ + {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + diff --git a/public/themes/website/4/zh/demo/news.html b/public/themes/website/4/zh/demo/news.html new file mode 100644 index 0000000..3c3f4b8 --- /dev/null +++ b/public/themes/website/4/zh/demo/news.html @@ -0,0 +1,281 @@ + + + + + {php} + $current_cate_id = $current_cate['id'] ?? ''; + // var_dump($current_cate);exit; + {/php} + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + +
+ {php}$news_root_id = uiId('news');{/php} + {hcTaglib:category id="$news_root_id" item="vo" field="id,title,alias"} + {php} + $news_cate_info = $vo; + $news_cate_info_alias = $vo['alias'] ?? ''; + {/php} + {/hcTaglib:category} +
+
+

+ 了解睿能科技 + 新闻动态 +

+
+ {php} + $news_active_cat = (string)input('cat', ''); + if ($news_active_cat === '' || $news_active_cat === 'all') { + $news_active_cat = (string)($current_cate_id ?: ($news_cate_info['id'] ?? '')); + } + $news_all_cat = (string)($news_cate_info['id'] ?? ''); + $news_video_id = (string)uiId('news_video'); + $is_news_video = ($news_video_id !== '' && $news_video_id !== '0' && $news_active_cat === $news_video_id); + {/php} + 全部 + {hcTaglib:subcategory pid="$news_cate_info['id']" item="vo" sort=""} + {$vo.title} + {/hcTaglib:subcategory} +
+
+ + {hcTaglib:contentPage2 cid="$current_cate_id" mainField="id,category_id,title,sub_title,thumbnail,content,description,create_time,is_top" subField="" name="hc_featured" limit="100" item="content_sub22" isTop="1"} + {/hcTaglib:contentPage2} + {php} + $news_has_featured = false; + if (!empty($hc_featured)) { + if (is_object($hc_featured) && method_exists($hc_featured, 'isEmpty')) { + $news_has_featured = !$hc_featured->isEmpty(); + } elseif (is_countable($hc_featured)) { + $news_has_featured = count($hc_featured) > 0; + } + } + {/php} + {if $news_has_featured && !$is_news_video} + + {/if} + +
+ + {hcTaglib:contentPage2 cid="$current_cate_id" mainField="id,category_id,title,sub_title,thumbnail,cover,content,description,create_time,publish_time,is_top" subField="" name="hc_content" limit="6" item="content_sub22" isTop="222"} + {/hcTaglib:contentPage2} + + {volist name="hc_content" id="vo_content"} + {php} + $content = $vo_content['content'] ?? ''; + $description = $vo_content['description'] ?? ''; + $create_time_str = $vo_content['publish_time'] ?? $vo_content['create_time']; + {/php} + + {if $is_news_video} + + {else /} + {php} + $is_item_video = ($news_video_id !== '' && $news_video_id !== '0' && (string)($vo_content['category_id'] ?? '') === $news_video_id); + {/php} +
+
+ +

{$vo_content.title}

+ {if !$is_item_video} + + 探索更多 + + + {/if} +
+
+ + {if $is_item_video} + {notempty name="description"} + {$description} + {/notempty} + + {/if} +
+
+ {/if} + {/volist} + +
+ + {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = $is_news_video ? '暂无相关视频' : '暂无相关新闻'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + + {$hc_content|raw} + {/if} + + + +
+
+{include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/4/zh/demo/product.html b/public/themes/website/4/zh/demo/product.html new file mode 100644 index 0000000..a22fe24 --- /dev/null +++ b/public/themes/website/4/zh/demo/product.html @@ -0,0 +1,484 @@ + + +{php} +// var_dump($hc_content);exit; +// 基本信息 +$id = $hc_content['id'] ?? ''; +$category_id = $hc_content['category_id'] ?? ''; +$sub_category_ids = $hc_content['sub_category_ids'] ?? ''; +$module_id = $hc_content['module_id'] ?? ''; +$lang = $hc_content['lang'] ?? ''; +$main_id = $hc_content['main_id'] ?? ''; +$title = $hc_content['title'] ?? ''; +$sub_title = $hc_content['sub_title'] ?? ''; +$description = $hc_content['description'] ?? ''; +$content = $hc_content['content'] ?? ''; +$cover = $hc_content['cover'] ?? ''; +$hits = $hc_content['hits'] ?? ''; +$admin_id = $hc_content['admin_id'] ?? ''; +$author = $hc_content['author'] ?? ''; +$status = $hc_content['status'] ?? ''; +$check_status = $hc_content['check_status'] ?? ''; +$url = $hc_content['url'] ?? ''; +$publish_time = $hc_content['publish_time'] ?? ''; +$is_top = $hc_content['is_top'] ?? ''; +$top_time = $hc_content['top_time'] ?? ''; +$is_recommend = $hc_content['is_recommend'] ?? ''; +$sort = $hc_content['sort'] ?? ''; +$detail_tpl = $hc_content['detail_tpl'] ?? ''; +$seo_title = $hc_content['seo_title'] ?? ''; +$seo_keyword = $hc_content['seo_keyword'] ?? ''; +$seo_description = $hc_content['seo_description'] ?? ''; +$version = $hc_content['version'] ?? ''; +$show_version = $hc_content['show_version'] ?? ''; +$is_del = $hc_content['is_del'] ?? ''; +$del_user_id = $hc_content['del_user_id'] ?? ''; +$delete_time = $hc_content['delete_time'] ?? ''; +$create_time = $hc_content['create_time'] ?? ''; +$update_time = $hc_content['update_time'] ?? ''; +$tag = $hc_content['tag'] ?? []; + +// 缩略图 +$thumbnail = (array)($hc_content['thumbnail'] ?? []); +$thumbnail_id = $thumbnail['id'] ?? ''; +$thumbnail_name = $thumbnail['name'] ?? ''; +$thumbnail_url = $thumbnail['url'] ?? ''; +$thumbnail_type = $thumbnail['type'] ?? ''; +$thumbnail_description = $thumbnail['description'] ?? ''; + +// 扩展内容 +$main_content = $hc_content['main_content'] ?? []; +$main_content_id = $main_content['id'] ?? ''; +$rich_text_two = $main_content['rich_text_two'] ?? ''; +$pic_many_one = $main_content['pic_many_one'] ?? []; // 产品介绍多图 +$pic_many = $main_content['pic_many'] ?? []; // 规格参数展示图集 +$rich_text_three = $main_content['rich_text_three'] ?? ''; // 规格参数第一个富文本框 +$rich_text_four = $main_content['rich_text_four'] ?? ''; +$rich_text_five = $main_content['rich_text_five'] ?? ''; +$rich_text_six = $main_content['rich_text_six'] ?? ''; +$rich_text_seven = $main_content['rich_text_seven'] ?? ''; +$resource_download_names = $main_content['resource_download_names'] ?? ''; // 下载文件自定义名称 +$atlas = $main_content['atlas'] ?? []; +$file = $main_content['file'] ?? ''; +$content_desc = $main_content['content_desc'] ?? ''; +$mc_lang = $main_content['lang'] ?? ''; +$lang_pid = $main_content['lang_pid'] ?? ''; +$sub_id = $main_content['sub_id'] ?? ''; +$mc_create_time = $main_content['create_time'] ?? ''; +$mc_update_time = $main_content['update_time'] ?? ''; + +// 资源图片 +$resource_pic = (array)($main_content['resource_pic'] ?? []); +$resource_pic_id = $resource_pic['id'] ?? ''; +$resource_pic_name = $resource_pic['name'] ?? ''; +$resource_pic_url = $resource_pic['url'] ?? ''; +$resource_pic_type = $resource_pic['type'] ?? ''; +$resource_pic_description = $resource_pic['description'] ?? ''; +$resource_pic_children = $resource_pic['children'] ?? []; + +// 资源下载 +$resource_download = $main_content['resource_download'] ?? []; +{/php} + + + + + {$title} - 睿能科技 + + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + + + +
+
+
+

{$title}

+ 查看选型表 +
+ + {$thumbnail_name} +
+
+
+ + +
+
+
+ + +
+ +
+ {$rich_text_two|raw} +
+
+
+ + +
+
+

规格参数

+ +
+ 产品型号 + +
+ +
+ {volist name="pic_many" id="vo" key="key"} +
+ {switch $key} + {case 1}{$rich_text_three|raw}{/case} + {case 2}{$rich_text_four|raw}{/case} + {case 3}{$rich_text_five|raw}{/case} + {case 4}{$rich_text_six|raw}{/case} + {case 5}{$rich_text_seven|raw}{/case} + {default /}暂无匹配内容 + {/switch} +
+ {/volist} + + {if $total_standard_num == 0} + + {$rich_text_three|raw} + {/if} + +
+
+
+ + + + {php} + // 1. 直接按照 %% 分割 + $mainArray = explode("%%", $resource_download_names); + $download_names = []; + // 2. 遍历并拆分 + foreach ($mainArray as $item) { + if (trim($item) !== '' && !empty($item)) { + $download_names[] = explode("##", trim($item)); + } + } + // 文件匹配 + $map = [ + 'png' => '图片', + 'jpg' => '图片', + 'jpeg' => '图片', + 'pdf' => 'PDF', + 'doc' => 'DOC', + 'docx' => 'DOC', + 'zip' => '压缩包', + '7z' => '压缩包', + 'rar' => '压缩包', + ]; + + {/php} +
+
+
+ RA3资料示意 +
+
+

资料下载

+
    + {volist name="resource_download" id="one_resource" key="key"} + {php} + $downloadUrl = $one_resource['url'] ?? ''; + $nameTmp = $download_names[$key-1][0] ?? ($one_resource['name'] ?? '文件-'.$key); + $descTmp = $download_names[$key-1][1] ?? ('描述-'.$key); + $dateTmp = $download_names[$key-1][2] ?? ('日期-'.$key); + $ext = strtolower(pathinfo($one_resource['url'], PATHINFO_EXTENSION)); + $file_type_name = $map[$ext] ?? '未知文件'; + // 下载文件名与页面展示名一致(展示名未带扩展名时补充) + $download_name = ($ext !== '' && strtolower(pathinfo($nameTmp, PATHINFO_EXTENSION)) === $ext) ? $nameTmp : rtrim($nameTmp, '.') . '.' . $ext; + {/php} +
  • +
    +

    + {$nameTmp} +

    +

    + {$descTmp} + + +

    +
    + + + + + + + + + + 下载{$file_type_name} + +
  • + {/volist} + +
+
+
+
+ + + +
+ +{include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + diff --git a/public/themes/website/4/zh/demo/search.html b/public/themes/website/4/zh/demo/search.html new file mode 100644 index 0000000..56de41e --- /dev/null +++ b/public/themes/website/4/zh/demo/search.html @@ -0,0 +1,192 @@ + + +{php} +dd('此页面废弃'); +{/php} + + + + + + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+
+
+

搜索

+ +
+ 热门搜索: +
+ + + +
+
+
+ +
+ + + + + +
+ +
+ {volist name="list" id="vo"} + {php} + $sr_date = ''; + $sr_time = $vo['publish_time'] ?? ($vo['create_time'] ?? ''); + if (!empty($sr_time)) { + $sr_date = is_numeric($sr_time) ? date('Y-m-d', (int)$sr_time) : $sr_time; + } + $sr_cid = $vo['category_id'] ?? ($vo['category'][0]['id'] ?? 0); + $sr_thumb = is_array($vo['thumbnail'] ?? null) ? ($vo['thumbnail']['url'] ?? '') : ''; + $sr_url = hcUrl('detail/index', ['id' => $vo['id'], 'cid' => $sr_cid]); + $sr_cate_title = $vo['category'][0]['title'] ?? ''; + $sr_type = 'other'; + if (mb_strpos($sr_cate_title, '产品') !== false) { + $sr_type = 'product'; + } elseif (mb_strpos($sr_cate_title, '解决方案') !== false || mb_strpos($sr_cate_title, '方案') !== false) { + $sr_type = 'solution'; + } elseif (mb_strpos($sr_cate_title, '新闻') !== false) { + $sr_type = 'news'; + } elseif (mb_strpos($sr_cate_title, '常见问题') !== false || mb_strpos($sr_cate_title, 'FAQ') !== false || mb_strpos($sr_cate_title, '问题') !== false) { + $sr_type = 'faq'; + } + {/php} +
+ + + +
+
+
+ {if !empty($vo['category'][0]['title'])}{$vo.category.0.title}{else /}内容{/if} + + +
+

+ {$vo.title} +

+ {notempty name="vo.description"} +

{$vo.description}

+ {/notempty} +
+ + 探索更多 + + + + + +
+
+ {/volist} +
+ + + + {php} + $list_empty = isHcListEmpty($list ?? null); + if ($list_empty) { + $empty_text = '未找到相关结果,请尝试其他关键词'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$list_page|raw} + {/if} +
+
+ + {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + diff --git a/public/themes/website/4/zh/demo/solution.html b/public/themes/website/4/zh/demo/solution.html new file mode 100644 index 0000000..51c56bb --- /dev/null +++ b/public/themes/website/4/zh/demo/solution.html @@ -0,0 +1,259 @@ + + + + + + + {$current_cate['seo_title']} + + + + + + + + + + + + + + + + + + + +{include file="components/header"} +
+ {if !empty($sub_cates[0])} +
+
+

{$sub_cates[0]['title'] ?? ''}

+

+ {$sub_cates[0]['description'] ?? ''} +

+
+ +
+ {/if} + {if !empty($sub_cates[1])} +
+

{$sub_cates[1]['title'] ?? ''}

+
    + {php} + $contents = getContentByCategory($sub_cates[1]['id'], $seller_id, 6, 'sort asc', ['thumbnail', 'category']); + {/php} + {volist name="contents" id="vo"} +
  • +

    {$vo['title'] ?? ''}

    +

    {$vo['description'] ?? ''}

    +
  • + {/volist} +
+
+ {/if} + {if !empty($sub_cates[2])} +
+

{$sub_cates[2]['title'] ?? ''}

+
+ {$sub_cates[2]['description'] ?? ''} +
+
+ {/if} + {if !empty($sub_cates[3])} +
+
+

{$sub_cates[3]['title'] ?? ''}

+
+ + +
+
+
+
+ {php} + $contents = getMixContentBySolutionName($current_cate['title'],$sub_cates[3]['id'],$seller_id, 6); + {/php} + {volist name="contents" id="vo"} + + {/volist} +
+
+
+
+ + +
+
+
+{/if} + {if !empty($sub_cates[4])} +
+

{$sub_cates[4]['title'] ?? ''}

+ {php} + $contents = getContentByCategory($sub_cates[4]['id'], $seller_id, 20, 'sort asc', ['thumbnail', 'category']); + $clients_marquee = is_array($contents) && count($contents) > 5; + {/php} +
+
+ {volist name="contents" id="vo"} +
+ {/volist} + {if $clients_marquee} + {volist name="contents" id="vo"} + + {/volist} + {/if} +
+
+
+ {/if} + {if !empty($sub_cates[5])} +
+

{$sub_cates[5]['title'] ?? ''}

+
+ +
+
+
+ {php} + $contents = getContentByCategory($sub_cates[5]['id'], $seller_id, 6, 'sort asc', ['thumbnail', 'category']); + {/php} + {volist name="contents" id="vo"} +
+

{$vo['title'] ?? ''}

+

{$vo['sub_title'] ?? ''}

+

{$vo['description'] ?? ''}

+
+ {php}$descArr = explode(',',$vo['seo_description']);{/php} + {if !empty($descArr)} + {volist name="descArr" id="vv"} + {$vv} + {/volist} + {/if} +
+
+ {/volist} +
+
+
+
+ + +
+
+ 1 + / + 4 +
+
+
+
+
+ {/if} +
+ + {include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + + diff --git a/public/themes/website/4/zh/demo/solution2.html b/public/themes/website/4/zh/demo/solution2.html new file mode 100644 index 0000000..ebd36d5 --- /dev/null +++ b/public/themes/website/4/zh/demo/solution2.html @@ -0,0 +1,280 @@ + + + +{php} +$current_cate_id = $current_cate['id'] ?? 0; +{/php} + + + + + {$current_cate['seo_title']} + + + + + + + + + + + + + + + + + + +{include file="components/header"} +
+ + {if !empty($sub_cates[0])} +
+
+

{$sub_cates[0]['title'] ?? ''}

+

+ {$sub_cates[0]['description'] ?? ''} +

+
+ +
+ {/if} + + {if !empty($sub_cates[1])} +
+

{$sub_cates[1]['title'] ?? ''}

+
    + {php} + $contents = getContentByCategory($sub_cates[1]['id'], $seller_id, 6, 'sort asc', ['thumbnail', 'category']); + {/php} + {volist name="contents" id="vo"} +
  • + +

    {$vo.title ?? ''}

    +

    {$vo.description ?? ''}

    +
  • + {/volist} +
+
+ {/if} + {if !empty($sub_cates[2])} +
+

{$sub_cates[2]['title'] ?? ''}

+
+ {$sub_cates[2]['description'] ?? ''} +
+
+ {/if} + {if !empty($sub_cates[3])} +
+
+

{$sub_cates[3]['title'] ?? ''}

+
+ + +
+
+
+
+ {php} + $products = getArticlesBySolutionName($current_cate['title'],$seller_id,6); + {/php} + {volist name="products" id="vo"} +
+
+

{$vo.title ?? ''}

+

{$vo.description ?? ''}

+ 探索更多 +
+
+ {$vo.title ?? ''} +
+
+ {/volist} +
+
+
+
+ {/if} + {if !empty($sub_cates[4])} + + {/if} + {if !empty($sub_cates[5])} + +
+
+

{$sub_cates[5]['title'] ?? ''}

+
+ + +
+
+ +
+
+ {php}$others = getOtherCategoryCategoryId($current_cate['id'],$seller_id,5);{/php} + {volist name="others" id="vo"} + + {/volist} +
+
+
+
+ + +
+
+
+ {/if} +
+ + {include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/4/zh/demo/video.html b/public/themes/website/4/zh/demo/video.html new file mode 100644 index 0000000..a7af67b --- /dev/null +++ b/public/themes/website/4/zh/demo/video.html @@ -0,0 +1,166 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + + + + {include file="components/header"} + +
+
+
+

{$current_cate.title}

+

{$current_cate.description}

+
+ +
+ {php} + $filter_cid = (string)input('cid', ''); + $filter_all_id = (string)($current_cate['id'] ?? ''); + if ($filter_cid === '') { + $filter_cid = $filter_all_id; + } + $filter_keywords = (string)input('keywords', ''); + $filter_is_all = ($filter_cid === $filter_all_id); + $filter_label = '按产品筛选'; + if (!$filter_is_all && !empty($sub_cates)) { + foreach ($sub_cates as $sc) { + if ((string)($sc['id'] ?? '') === $filter_cid) { + $filter_label = $sc['title'] ?? $filter_label; + break; + } + } + } + {/php} +
+ + +
+ +
+ +
+ {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo"} + + {/hcTaglib:contentPage} +
+ {php} + $list_empty = isHcListEmpty($hc_content ?? null); + if ($list_empty) { + $empty_text = '暂无相关视频'; + } + {/php} + {if $list_empty} + {include file="components/empty"} + {else /} + {$hc_content|raw} + {/if} + + +
+
+ {include file="components/mask"} + + {include file="components/footer"} + + + + + + + + + + + + + \ No newline at end of file