2 Commits

  1. 5
      public/themes/dist_static/static/css/announce.css
  2. 6
      public/themes/dist_static/static/css/download.css
  3. 5
      public/themes/dist_static/static/css/investment.css
  4. 6
      public/themes/dist_static/static/css/product.css
  5. 7
      public/themes/dist_static/static/css/search.css
  6. 6
      public/themes/website/1/en/demo/announce.html
  7. 9
      public/themes/website/1/en/demo/download.html
  8. 6
      public/themes/website/1/en/demo/investment.html
  9. 17
      public/themes/website/1/en/demo/product.html
  10. 15
      public/themes/website/1/en/demo/single_search.html
  11. 6
      public/themes/website/1/zh/demo/announce.html
  12. 9
      public/themes/website/1/zh/demo/download.html
  13. 6
      public/themes/website/1/zh/demo/investment.html
  14. 17
      public/themes/website/1/zh/demo/product.html
  15. 15
      public/themes/website/1/zh/demo/single_search.html

5
public/themes/dist_static/static/css/announce.css

@ -148,6 +148,11 @@
.a-card:hover .a-card__link {
color: var(--color-primary);
}
.a-card.is-disabled {
pointer-events: none;
cursor: default;
opacity: 0.55;
}
.a-card__date {
color: var(--color-text-muted);
font-family: "D-DIN-PRO", "MiSans VF", "PingFang SC", sans-serif;

6
public/themes/dist_static/static/css/download.css

@ -158,6 +158,12 @@
text-decoration: none;
color: inherit;
}
.d-item__main.is-disabled,
.d-item__action.is-disabled {
pointer-events: none;
cursor: default;
opacity: 0.55;
}
.d-item__main:hover .d-item__name {
color: var(--color-primary);
}

5
public/themes/dist_static/static/css/investment.css

@ -181,6 +181,11 @@
.iv-announce__link path {
fill: currentColor;
}
.iv-announce__link.is-disabled {
pointer-events: none;
cursor: default;
opacity: 0.55;
}
.iv-stock {
padding-top: 6.25rem;

6
public/themes/dist_static/static/css/product.css

@ -601,6 +601,12 @@ body.is-p-subnav .site-header {
.p-download__name a:hover {
color: var(--color-primary);
}
.p-download__name .is-disabled,
.p-download__link.is-disabled {
pointer-events: none;
cursor: default;
opacity: 0.55;
}
.p-download__meta {
display: flex;
align-items: center;

7
public/themes/dist_static/static/css/search.css

@ -132,6 +132,13 @@
padding: 1.5rem;
background: rgba(175, 181, 185, 0.15);
}
.sr-item__media.is-disabled,
.sr-item__more.is-disabled,
a.is-disabled {
pointer-events: none;
cursor: default;
opacity: 0.55;
}
.sr-item__media img {
display: block;
width: 100%;

6
public/themes/website/1/en/demo/announce.html

@ -106,7 +106,11 @@
<div class="a-grid">
{hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="8" item="vo"}
<a class="a-card" href="{$vo.url ?? ''}" target="_blank">
{php}
$announce_url = trim((string)($vo['url'] ?? ''));
$has_announce = $announce_url !== '';
{/php}
<a class="a-card{if !$has_announce} is-disabled{/if}" href="{if $has_announce}{$announce_url}{else /}javascript:;{/if}"{if $has_announce} target="_blank"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<time class="a-card__date" datetime="{$vo.publish_time}">{$vo.publish_time}</time>
<h2 class="a-card__title">{$vo.title}</h2>
<span class="a-card__link">

9
public/themes/website/1/en/demo/download.html

@ -118,13 +118,16 @@
</div>
<div class="d-list">
{hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo" sort="sort desc"}
{php}$dl_file = $vo['url'] ?? ($vo['thumbnail']['url'] ?? '');{/php}
{php}
$dl_file = trim((string)($vo['url'] ?? ($vo['thumbnail']['url'] ?? '')));
$has_dl = $dl_file !== '';
{/php}
<div class="d-item">
<a class="d-item__main" href="{$dl_file}" target="_blank" rel="noopener" title="Preview">
<a class="d-item__main{if !$has_dl} is-disabled{/if}" href="{if $has_dl}{$dl_file}{else /}javascript:;{/if}"{if $has_dl} target="_blank" rel="noopener" title="Preview"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<img class="d-item__pdf" src="data:image/svg+xml,%3csvg%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32.000000'%20height='32.000000'%20fill='none'%3e%3crect%20id='PDF%201'%20width='32.000000'%20height='32.000000'%20x='0.000000'%20y='0.000000'%20/%3e%3cpath%20id='矢量%20508'%20d='M28.1766%2028.9602C28.1766%2029.3602%2028.0164%2029.7441%2027.7285%2030.032C27.4402%2030.3199%2027.0566%2030.4801%2026.6562%2030.4801L5.32852%2030.4801C4.92852%2030.4801%204.52852%2030.3199%204.25664%2030.032C3.96875%2029.7437%203.80859%2029.3602%203.80859%2028.9602L3.80859%201.51992C3.80859%201.11992%203.96836%200.719922%204.25664%200.448047C4.52852%200.160156%204.92891%200%205.32852%200L18.4168%200C18.8168%200%2019.2168%200.160156%2019.5047%200.448047L27.7445%208.68828C28.0324%208.97617%2028.1926%209.36016%2028.1926%209.77617L28.1926%2028.9602L28.1766%2028.9602Z'%20fill='rgb(235,236,240)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20509'%20d='M28.1766%2028.96L28.1766%2030.4799C28.1766%2030.8799%2028.0164%2031.2799%2027.7285%2031.5518C27.4402%2031.84%2027.0566%2031.9998%2026.6562%2031.9998L5.32852%2031.9998C4.48047%2031.9998%203.80859%2031.3119%203.80859%2030.4799L3.80859%2028.96C3.80859%2029.36%203.96836%2029.7439%204.25664%2030.0318C4.54453%2030.3197%204.92852%2030.4799%205.32852%2030.4799L26.6566%2030.4799C27.5047%2030.4799%2028.1766%2029.792%2028.1766%2028.96L28.1766%2028.96Z'%20fill='rgb(193,199,208)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20510'%20d='M3.80781%2016.7682L3.80781%2013.7119L0.751953%2016.7682L3.80781%2016.7682ZM28.1758%2016.7682L28.2078%2013.7119L31.2477%2016.7682L28.1758%2016.7682L28.1758%2016.7682Z'%20fill='rgb(211,0,0)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20511'%20d='M28.1762%209.77617L28.1762%209.98398L19.9359%209.98398C19.0879%209.98398%2018.416%209.29609%2018.416%208.46406L18.416%200C18.816%200%2019.216%200.160156%2019.5039%200.448047L27.7602%208.68828C28.032%208.97617%2028.1922%209.36016%2028.1762%209.77617Z'%20fill='rgb(193,199,208)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20512'%20d='M15.7164%2019.0972L14.4629%2019.0972L14.4629%2023.5655L15.6941%2023.5655C17.0926%2023.5655%2017.8484%2022.7776%2017.8484%2021.2577C17.8484%2019.9351%2017.157%2019.1147%2015.7164%2019.0972ZM8.59219%2019.0995L6.79883%2019.0995L6.79883%2020.9983L8.59219%2020.9983C9.32695%2020.9983%209.79141%2020.7464%209.79141%2020.0362C9.79141%2019.4573%209.43555%2019.0995%208.59219%2019.0995L8.59219%2019.0995Z'%20fill='rgb(255,29,29)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20513'%20d='M0.767578%2016.7681L0.767578%2024.3681C0.767578%2024.7841%200.927344%2025.1681%201.21562%2025.456C1.4875%2025.7442%201.8875%2025.904%202.2875%2025.904L29.7117%2025.904C30.5438%2025.904%2031.2316%2025.2321%2031.2316%2024.3841L31.2316%2016.7681L0.767578%2016.7681ZM8.72617%2022.3454L6.79844%2022.3454L6.79844%2024.9103L5.05469%2024.9103L5.05469%2017.7618L8.75352%2017.7618C10.4156%2017.7618%2011.5207%2018.6021%2011.5207%2020.0087C11.5207%2021.4153%2010.4797%2022.3454%208.72617%2022.3454L8.72617%2022.3454ZM15.9223%2024.9103L12.7277%2024.9103L12.7277%2017.7618L15.959%2017.7618C18.3676%2017.7618%2019.6855%2019.3251%2019.6855%2021.211C19.6855%2023.4993%2018.0027%2024.9103%2015.9223%2024.9103ZM26.9953%2019.1419L22.8473%2019.1419L22.8473%2020.7677L26.7164%2020.7677L26.7164%2022.1579L22.8473%2022.1579L22.8473%2024.9099L21.1125%2024.9099L21.1125%2017.7614L26.9953%2017.7614L26.9953%2019.1415L26.9953%2019.1419Z'%20fill='rgb(239,67,53)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20514'%20d='M8.75313%2017.7617L5.05469%2017.7617L5.05469%2024.9102L6.79844%2024.9102L6.79844%2022.3453L8.72617%2022.3453C10.4797%2022.3453%2011.5207%2021.4703%2011.5207%2020.0086C11.5207%2018.5469%2010.4156%2017.7617%208.75352%2017.7617L8.75313%2017.7617ZM8.59141%2020.9984L6.79805%2020.9984L6.79805%2019.0996L8.59141%2019.0996C9.43477%2019.0996%209.79063%2019.4574%209.79063%2020.0363C9.79063%2020.7461%209.32578%2020.9984%208.59141%2020.9984L8.59141%2020.9984ZM15.959%2017.7617L12.7277%2017.7617L12.7277%2024.9102L15.9223%2024.9102C18.0027%2024.9102%2019.6855%2023.4992%2019.6855%2021.2109C19.6855%2019.325%2018.368%2017.7617%2015.959%2017.7617ZM15.6934%2023.5656L14.4621%2023.5656L14.4621%2019.0973L15.7156%2019.0973C17.1559%2019.1152%2017.8477%2019.9355%2017.8477%2021.2578C17.8477%2022.7777%2017.0918%2023.5656%2015.6934%2023.5656ZM21.1125%2024.9102L22.8473%2024.9102L22.8473%2022.1582L26.7164%2022.1582L26.7164%2020.768L22.8473%2020.768L22.8473%2019.1422L26.9953%2019.1422L26.9953%2017.7617L21.1125%2017.7617L21.1125%2024.9102Z'%20fill='rgb(255,255,255)'%20fill-rule='nonzero'%20/%3e%3c/svg%3e" alt="" width="32" height="32" />
<span class="d-item__name">{$vo.title}</span>
</a>
<a class="d-item__action" href="{$dl_file}" download="{$vo.title}">
<a class="d-item__action{if !$has_dl} is-disabled{/if}" href="{if $has_dl}{$dl_file}{else /}javascript:;{/if}"{if $has_dl} download="{$vo.title}"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<img src="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='24.000000'%20height='24.000000'%20fill='none'%3e%3crect%20id='容器%20520'%20width='24.000000'%20height='24.000000'%20x='0.000000'%20y='0.000000'%20fill='rgb(255,255,255)'%20fill-opacity='0'%20/%3e%3cg%20id='download--02'%3e%3cpath%20id='矢量%20486'%20d='M16.6667%209.33301L22%209.33301L22%2021.9997L2%2021.9997L2%209.33301L7.33333%209.33301'%20fill-rule='nonzero'%20stroke='rgb(46,53,58)'%20stroke-linejoin='round'%20stroke-width='1.500000'%20/%3e%3cpath%20id='矢量%20487'%20d='M16%2014L12%2018L8%2014M12%202L12%2018'%20fill-rule='nonzero'%20stroke='rgb(239,67,53)'%20stroke-width='1.500000'%20/%3e%3c/g%3e%3c/svg%3e" alt="" width="24" height="24" />
<span>Download</span>
</a>

6
public/themes/website/1/en/demo/investment.html

@ -116,10 +116,14 @@
<div class="iv-announce__swiper swiper">
<div class="swiper-wrapper">
{hcTaglib:contentPage cid="$ui_invest_announce" mainField="*" subField="*" name="hc_content" limit="12" item="vo"}
{php}
$announce_url = trim((string)($vo['url'] ?? ''));
$has_announce = $announce_url !== '';
{/php}
<article class="swiper-slide iv-announce__card">
<time class="iv-announce__date" datetime="{$vo.publish_time|date='Y-m-d'}">{$vo.publish_time|date='Y-m-d'}</time>
<h3 class="iv-announce__name">{$vo.title}</h3>
<a class="iv-announce__link" href="{$vo.url ?? ''}" target="_blank">
<a class="iv-announce__link{if !$has_announce} is-disabled{/if}" href="{if $has_announce}{$announce_url}{else /}javascript:;{/if}"{if $has_announce} target="_blank"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<span>View details</span>
<svg viewBox="0 0 16.502 6.66113" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16.501953" height="6.661133" fill="none" customFrame="#000000">
<path id="箭头 2" d="M0 2.83057L16 2.83057L16 3.83057L0 3.83057L0 2.83057ZM15.2929 3.33057L12.818 0.855693C12.62 0.657703 12.62 0.346575 12.818 0.148586C13.016 -0.0494041 13.3271 -0.0494046 13.5251 0.148585L16.3536 2.97701C16.5515 3.175 16.5515 3.48613 16.3536 3.68412L13.5251 6.51255C13.3271 6.71054 13.016 6.71054 12.818 6.51255C12.62 6.31456 12.62 6.00343 12.818 5.80544L15.2929 3.33057Z" fill="rgb(102,102,102)" fill-rule="nonzero" />

17
public/themes/website/1/en/demo/product.html

@ -291,19 +291,24 @@ $resource_download = $main_content['resource_download'] ?? [];
<ul class="p-download__list">
{volist name="resource_download" id="one_resource" key="key"}
{php}
$downloadUrl = $one_resource['url'] ?? '';
$downloadUrl = trim((string)($one_resource['url'] ?? ''));
$hasDownload = $downloadUrl !== '';
$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));
$ext = $hasDownload ? strtolower(pathinfo($downloadUrl, PATHINFO_EXTENSION)) : '';
$file_type_name = $map[$ext] ?? 'Unknown file';
// 下载文件名与页面展示名一致(展示名未带扩展名时补充)
$download_name = ($ext !== '' && strtolower(pathinfo($nameTmp, PATHINFO_EXTENSION)) === $ext) ? $nameTmp : rtrim($nameTmp, '.') . '.' . $ext;
$download_name = ($ext !== '' && strtolower(pathinfo($nameTmp, PATHINFO_EXTENSION)) === $ext) ? $nameTmp : rtrim($nameTmp, '.') . ($ext !== '' ? '.' . $ext : '');
{/php}
<li class="p-download__item">
<div class="p-download__info">
<h3 class="p-download__name">
{if $hasDownload}
<a href="{$downloadUrl}" target="_blank" rel="noopener" title="Preview">{$nameTmp}</a>
{else /}
<span class="is-disabled" aria-disabled="true">{$nameTmp}</span>
{/if}
</h3>
<p class="p-download__meta">
<span>{$descTmp}</span>
@ -312,9 +317,9 @@ $resource_download = $main_content['resource_download'] ?? [];
</p>
</div>
<a
class="p-download__link"
href="{$downloadUrl}"
download="{$download_name}"
class="p-download__link{if !$hasDownload} is-disabled{/if}"
href="{if $hasDownload}{$downloadUrl}{else /}javascript:;{/if}"
{if $hasDownload}download="{$download_name}"{else /}aria-disabled="true" tabindex="-1" onclick="return false;"{/if}
>
<svg
viewBox="0 0 24 24"

15
public/themes/website/1/en/demo/single_search.html

@ -144,7 +144,8 @@
$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_file = $vo['url'] ?? '';
$sr_file = trim((string)($vo['url'] ?? ''));
$has_sr_file = $sr_file !== '';
$sr_title = $vo['title'] ?? '';
$sr_type_name = $vo['sr_tab_name'] ?? 'Content';
$sr_show_desc = ($sr_kind === 'news' || $sr_kind === 'content');
@ -161,11 +162,11 @@
</span>
</button>
{elseif $sr_kind == 'download' /}
<a class="sr-item__media" href="{$sr_file}" target="_blank" rel="noopener" title="Preview">
<a class="sr-item__media{if !$has_sr_file} is-disabled{/if}" href="{if $has_sr_file}{$sr_file}{else /}javascript:;{/if}"{if $has_sr_file} target="_blank" rel="noopener" title="Preview"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<img src="{$sr_thumb}" alt="" width="300" height="200" loading="lazy" />
</a>
{elseif $sr_kind == 'announce' /}
<a class="sr-item__media" href="{$sr_file}" target="_blank" rel="noopener">
<a class="sr-item__media{if !$has_sr_file} is-disabled{/if}" href="{if $has_sr_file}{$sr_file}{else /}javascript:;{/if}"{if $has_sr_file} target="_blank" rel="noopener"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<img src="{$sr_thumb}" alt="" width="300" height="200" loading="lazy" />
</a>
{else /}
@ -202,9 +203,9 @@
{if $sr_kind == 'video'}
{$sr_title}
{elseif $sr_kind == 'download' /}
<a href="{$sr_file}" target="_blank" rel="noopener" title="Preview">{$sr_title}</a>
<a href="{if $has_sr_file}{$sr_file}{else /}javascript:;{/if}"{if $has_sr_file} target="_blank" rel="noopener" title="Preview"{else /} class="is-disabled" aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>{$sr_title}</a>
{elseif $sr_kind == 'announce' /}
<a href="{$sr_file}" target="_blank" rel="noopener">{$sr_title}</a>
<a href="{if $has_sr_file}{$sr_file}{else /}javascript:;{/if}"{if $has_sr_file} target="_blank" rel="noopener"{else /} class="is-disabled" aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>{$sr_title}</a>
{else /}
<a href="{$sr_url}">{$sr_title}</a>
{/if}
@ -219,7 +220,7 @@
</div>
{if $sr_kind == 'download'}
<a class="sr-item__more sr-item__more--download" href="{$sr_file}" download="{$sr_title}">
<a class="sr-item__more sr-item__more--download{if !$has_sr_file} is-disabled{/if}" href="{if $has_sr_file}{$sr_file}{else /}javascript:;{/if}"{if $has_sr_file} download="{$sr_title}"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<span>Download</span>
<img src="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20d='M16.667%209.333H22V22H2V9.333h5.333'%20stroke='rgb(46,53,58)'%20stroke-linejoin='round'%20stroke-width='1.5'/%3e%3cpath%20d='M16%2014l-4%204-4-4M12%202v16'%20stroke='rgb(239,67,53)'%20stroke-width='1.5'/%3e%3c/svg%3e" alt="" width="20" height="20" />
</a>
@ -231,7 +232,7 @@
</span>
</a>
{elseif $sr_kind == 'announce' /}
<a class="sr-item__more" href="{$sr_file}" target="_blank" rel="noopener">
<a class="sr-item__more{if !$has_sr_file} is-disabled{/if}" href="{if $has_sr_file}{$sr_file}{else /}javascript:;{/if}"{if $has_sr_file} target="_blank" rel="noopener"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<span>Explore more</span>
<svg viewBox="0 0 16.502 6.66113" xmlns="http://www.w3.org/2000/svg" width="16.501953" height="6.661133" fill="none">
<path d="M0 2.83057L16 2.83057L16 3.83057L0 3.83057L0 2.83057ZM15.2929 3.33057L12.818 0.855693C12.62 0.657703 12.62 0.346575 12.818 0.148586C13.016 -0.0494041 13.3271 -0.0494046 13.5251 0.148585L16.3536 2.97701C16.5515 3.175 16.5515 3.48613 16.3536 3.68412L13.5251 6.51255C13.3271 6.71054 13.016 6.71054 12.818 6.51255C12.62 6.31456 12.62 6.00343 12.818 5.80544L15.2929 3.33057Z" fill="rgb(102,102,102)" fill-rule="nonzero" />

6
public/themes/website/1/zh/demo/announce.html

@ -106,7 +106,11 @@
<div class="a-grid">
{hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="8" item="vo"}
<a class="a-card" href="{$vo.url ?? ''}" target="_blank">
{php}
$announce_url = trim((string)($vo['url'] ?? ''));
$has_announce = $announce_url !== '';
{/php}
<a class="a-card{if !$has_announce} is-disabled{/if}" href="{if $has_announce}{$announce_url}{else /}javascript:;{/if}"{if $has_announce} target="_blank"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<time class="a-card__date" datetime="{$vo.publish_time}">{$vo.publish_time}</time>
<h2 class="a-card__title">{$vo.title}</h2>
<span class="a-card__link">

9
public/themes/website/1/zh/demo/download.html

@ -118,13 +118,16 @@
</div>
<div class="d-list">
{hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo" sort="sort desc"}
{php}$dl_file = !empty($vo['url']) ? $vo['url'] : ($vo['thumbnail']['url'] ?? '');{/php}
{php}
$dl_file = trim((string)($vo['url'] ?? ($vo['thumbnail']['url'] ?? '')));
$has_dl = $dl_file !== '';
{/php}
<div class="d-item">
<a class="d-item__main" href="{$dl_file}" target="_blank" rel="noopener" title="预览">
<a class="d-item__main{if !$has_dl} is-disabled{/if}" href="{if $has_dl}{$dl_file}{else /}javascript:;{/if}"{if $has_dl} target="_blank" rel="noopener" title="预览"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<img class="d-item__pdf" src="data:image/svg+xml,%3csvg%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32.000000'%20height='32.000000'%20fill='none'%3e%3crect%20id='PDF%201'%20width='32.000000'%20height='32.000000'%20x='0.000000'%20y='0.000000'%20/%3e%3cpath%20id='矢量%20508'%20d='M28.1766%2028.9602C28.1766%2029.3602%2028.0164%2029.7441%2027.7285%2030.032C27.4402%2030.3199%2027.0566%2030.4801%2026.6562%2030.4801L5.32852%2030.4801C4.92852%2030.4801%204.52852%2030.3199%204.25664%2030.032C3.96875%2029.7437%203.80859%2029.3602%203.80859%2028.9602L3.80859%201.51992C3.80859%201.11992%203.96836%200.719922%204.25664%200.448047C4.52852%200.160156%204.92891%200%205.32852%200L18.4168%200C18.8168%200%2019.2168%200.160156%2019.5047%200.448047L27.7445%208.68828C28.0324%208.97617%2028.1926%209.36016%2028.1926%209.77617L28.1926%2028.9602L28.1766%2028.9602Z'%20fill='rgb(235,236,240)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20509'%20d='M28.1766%2028.96L28.1766%2030.4799C28.1766%2030.8799%2028.0164%2031.2799%2027.7285%2031.5518C27.4402%2031.84%2027.0566%2031.9998%2026.6562%2031.9998L5.32852%2031.9998C4.48047%2031.9998%203.80859%2031.3119%203.80859%2030.4799L3.80859%2028.96C3.80859%2029.36%203.96836%2029.7439%204.25664%2030.0318C4.54453%2030.3197%204.92852%2030.4799%205.32852%2030.4799L26.6566%2030.4799C27.5047%2030.4799%2028.1766%2029.792%2028.1766%2028.96L28.1766%2028.96Z'%20fill='rgb(193,199,208)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20510'%20d='M3.80781%2016.7682L3.80781%2013.7119L0.751953%2016.7682L3.80781%2016.7682ZM28.1758%2016.7682L28.2078%2013.7119L31.2477%2016.7682L28.1758%2016.7682L28.1758%2016.7682Z'%20fill='rgb(211,0,0)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20511'%20d='M28.1762%209.77617L28.1762%209.98398L19.9359%209.98398C19.0879%209.98398%2018.416%209.29609%2018.416%208.46406L18.416%200C18.816%200%2019.216%200.160156%2019.5039%200.448047L27.7602%208.68828C28.032%208.97617%2028.1922%209.36016%2028.1762%209.77617Z'%20fill='rgb(193,199,208)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20512'%20d='M15.7164%2019.0972L14.4629%2019.0972L14.4629%2023.5655L15.6941%2023.5655C17.0926%2023.5655%2017.8484%2022.7776%2017.8484%2021.2577C17.8484%2019.9351%2017.157%2019.1147%2015.7164%2019.0972ZM8.59219%2019.0995L6.79883%2019.0995L6.79883%2020.9983L8.59219%2020.9983C9.32695%2020.9983%209.79141%2020.7464%209.79141%2020.0362C9.79141%2019.4573%209.43555%2019.0995%208.59219%2019.0995L8.59219%2019.0995Z'%20fill='rgb(255,29,29)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20513'%20d='M0.767578%2016.7681L0.767578%2024.3681C0.767578%2024.7841%200.927344%2025.1681%201.21562%2025.456C1.4875%2025.7442%201.8875%2025.904%202.2875%2025.904L29.7117%2025.904C30.5438%2025.904%2031.2316%2025.2321%2031.2316%2024.3841L31.2316%2016.7681L0.767578%2016.7681ZM8.72617%2022.3454L6.79844%2022.3454L6.79844%2024.9103L5.05469%2024.9103L5.05469%2017.7618L8.75352%2017.7618C10.4156%2017.7618%2011.5207%2018.6021%2011.5207%2020.0087C11.5207%2021.4153%2010.4797%2022.3454%208.72617%2022.3454L8.72617%2022.3454ZM15.9223%2024.9103L12.7277%2024.9103L12.7277%2017.7618L15.959%2017.7618C18.3676%2017.7618%2019.6855%2019.3251%2019.6855%2021.211C19.6855%2023.4993%2018.0027%2024.9103%2015.9223%2024.9103ZM26.9953%2019.1419L22.8473%2019.1419L22.8473%2020.7677L26.7164%2020.7677L26.7164%2022.1579L22.8473%2022.1579L22.8473%2024.9099L21.1125%2024.9099L21.1125%2017.7614L26.9953%2017.7614L26.9953%2019.1415L26.9953%2019.1419Z'%20fill='rgb(239,67,53)'%20fill-rule='nonzero'%20/%3e%3cpath%20id='矢量%20514'%20d='M8.75313%2017.7617L5.05469%2017.7617L5.05469%2024.9102L6.79844%2024.9102L6.79844%2022.3453L8.72617%2022.3453C10.4797%2022.3453%2011.5207%2021.4703%2011.5207%2020.0086C11.5207%2018.5469%2010.4156%2017.7617%208.75352%2017.7617L8.75313%2017.7617ZM8.59141%2020.9984L6.79805%2020.9984L6.79805%2019.0996L8.59141%2019.0996C9.43477%2019.0996%209.79063%2019.4574%209.79063%2020.0363C9.79063%2020.7461%209.32578%2020.9984%208.59141%2020.9984L8.59141%2020.9984ZM15.959%2017.7617L12.7277%2017.7617L12.7277%2024.9102L15.9223%2024.9102C18.0027%2024.9102%2019.6855%2023.4992%2019.6855%2021.2109C19.6855%2019.325%2018.368%2017.7617%2015.959%2017.7617ZM15.6934%2023.5656L14.4621%2023.5656L14.4621%2019.0973L15.7156%2019.0973C17.1559%2019.1152%2017.8477%2019.9355%2017.8477%2021.2578C17.8477%2022.7777%2017.0918%2023.5656%2015.6934%2023.5656ZM21.1125%2024.9102L22.8473%2024.9102L22.8473%2022.1582L26.7164%2022.1582L26.7164%2020.768L22.8473%2020.768L22.8473%2019.1422L26.9953%2019.1422L26.9953%2017.7617L21.1125%2017.7617L21.1125%2024.9102Z'%20fill='rgb(255,255,255)'%20fill-rule='nonzero'%20/%3e%3c/svg%3e" alt="" width="32" height="32" />
<span class="d-item__name">{$vo.title}</span>
</a>
<a class="d-item__action" href="{$dl_file}" download="{$vo.title}">
<a class="d-item__action{if !$has_dl} is-disabled{/if}" href="{if $has_dl}{$dl_file}{else /}javascript:;{/if}"{if $has_dl} download="{$vo.title}"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<img src="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='24.000000'%20height='24.000000'%20fill='none'%3e%3crect%20id='容器%20520'%20width='24.000000'%20height='24.000000'%20x='0.000000'%20y='0.000000'%20fill='rgb(255,255,255)'%20fill-opacity='0'%20/%3e%3cg%20id='download--02'%3e%3cpath%20id='矢量%20486'%20d='M16.6667%209.33301L22%209.33301L22%2021.9997L2%2021.9997L2%209.33301L7.33333%209.33301'%20fill-rule='nonzero'%20stroke='rgb(46,53,58)'%20stroke-linejoin='round'%20stroke-width='1.500000'%20/%3e%3cpath%20id='矢量%20487'%20d='M16%2014L12%2018L8%2014M12%202L12%2018'%20fill-rule='nonzero'%20stroke='rgb(239,67,53)'%20stroke-width='1.500000'%20/%3e%3c/g%3e%3c/svg%3e" alt="" width="24" height="24" />
<span>立即下载</span>
</a>

6
public/themes/website/1/zh/demo/investment.html

@ -116,10 +116,14 @@
<div class="iv-announce__swiper swiper">
<div class="swiper-wrapper">
{hcTaglib:contentPage cid="$ui_invest_announce" mainField="*" subField="*" name="hc_content" limit="12" item="vo"}
{php}
$announce_url = trim((string)($vo['url'] ?? ''));
$has_announce = $announce_url !== '';
{/php}
<article class="swiper-slide iv-announce__card">
<time class="iv-announce__date" datetime="{$vo.publish_time|date='Y-m-d'}">{$vo.publish_time|date='Y-m-d'}</time>
<h3 class="iv-announce__name">{$vo.title}</h3>
<a class="iv-announce__link" href="{$vo.url ?? ''}" target="_blank">
<a class="iv-announce__link{if !$has_announce} is-disabled{/if}" href="{if $has_announce}{$announce_url}{else /}javascript:;{/if}"{if $has_announce} target="_blank"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<span>查看详情</span>
<svg viewBox="0 0 16.502 6.66113" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16.501953" height="6.661133" fill="none" customFrame="#000000">
<path id="箭头 2" d="M0 2.83057L16 2.83057L16 3.83057L0 3.83057L0 2.83057ZM15.2929 3.33057L12.818 0.855693C12.62 0.657703 12.62 0.346575 12.818 0.148586C13.016 -0.0494041 13.3271 -0.0494046 13.5251 0.148585L16.3536 2.97701C16.5515 3.175 16.5515 3.48613 16.3536 3.68412L13.5251 6.51255C13.3271 6.71054 13.016 6.71054 12.818 6.51255C12.62 6.31456 12.62 6.00343 12.818 5.80544L15.2929 3.33057Z" fill="rgb(102,102,102)" fill-rule="nonzero" />

17
public/themes/website/1/zh/demo/product.html

@ -291,19 +291,24 @@ $resource_download = $main_content['resource_download'] ?? [];
<ul class="p-download__list">
{volist name="resource_download" id="one_resource" key="key"}
{php}
$downloadUrl = $one_resource['url'] ?? '';
$downloadUrl = trim((string)($one_resource['url'] ?? ''));
$hasDownload = $downloadUrl !== '';
$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));
$ext = $hasDownload ? strtolower(pathinfo($downloadUrl, PATHINFO_EXTENSION)) : '';
$file_type_name = $map[$ext] ?? '未知文件';
// 下载文件名与页面展示名一致(展示名未带扩展名时补充)
$download_name = ($ext !== '' && strtolower(pathinfo($nameTmp, PATHINFO_EXTENSION)) === $ext) ? $nameTmp : rtrim($nameTmp, '.') . '.' . $ext;
$download_name = ($ext !== '' && strtolower(pathinfo($nameTmp, PATHINFO_EXTENSION)) === $ext) ? $nameTmp : rtrim($nameTmp, '.') . ($ext !== '' ? '.' . $ext : '');
{/php}
<li class="p-download__item">
<div class="p-download__info">
<h3 class="p-download__name">
{if $hasDownload}
<a href="{$downloadUrl}" target="_blank" rel="noopener" title="预览">{$nameTmp}</a>
{else /}
<span class="is-disabled" aria-disabled="true">{$nameTmp}</span>
{/if}
</h3>
<p class="p-download__meta">
<span>{$descTmp}</span>
@ -312,9 +317,9 @@ $resource_download = $main_content['resource_download'] ?? [];
</p>
</div>
<a
class="p-download__link"
href="{$downloadUrl}"
download="{$download_name}"
class="p-download__link{if !$hasDownload} is-disabled{/if}"
href="{if $hasDownload}{$downloadUrl}{else /}javascript:;{/if}"
{if $hasDownload}download="{$download_name}"{else /}aria-disabled="true" tabindex="-1" onclick="return false;"{/if}
>
<svg
viewBox="0 0 24 24"

15
public/themes/website/1/zh/demo/single_search.html

@ -144,7 +144,8 @@
$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_file = $vo['url'] ?? '';
$sr_file = trim((string)($vo['url'] ?? ''));
$has_sr_file = $sr_file !== '';
$sr_title = $vo['title'] ?? '';
$sr_type_name = $vo['sr_tab_name'] ?? '内容';
$sr_show_desc = ($sr_kind === 'news' || $sr_kind === 'content');
@ -161,11 +162,11 @@
</span>
</button>
{elseif $sr_kind == 'download' /}
<a class="sr-item__media" href="{$sr_file}" target="_blank" rel="noopener" title="预览">
<a class="sr-item__media{if !$has_sr_file} is-disabled{/if}" href="{if $has_sr_file}{$sr_file}{else /}javascript:;{/if}"{if $has_sr_file} target="_blank" rel="noopener" title="预览"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<img src="{$sr_thumb}" alt="" width="300" height="200" loading="lazy" />
</a>
{elseif $sr_kind == 'announce' /}
<a class="sr-item__media" href="{$sr_file}" target="_blank" rel="noopener">
<a class="sr-item__media{if !$has_sr_file} is-disabled{/if}" href="{if $has_sr_file}{$sr_file}{else /}javascript:;{/if}"{if $has_sr_file} target="_blank" rel="noopener"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<img src="{$sr_thumb}" alt="" width="300" height="200" loading="lazy" />
</a>
{else /}
@ -202,9 +203,9 @@
{if $sr_kind == 'video'}
{$sr_title}
{elseif $sr_kind == 'download' /}
<a href="{$sr_file}" target="_blank" rel="noopener" title="预览">{$sr_title}</a>
<a href="{if $has_sr_file}{$sr_file}{else /}javascript:;{/if}"{if $has_sr_file} target="_blank" rel="noopener" title="预览"{else /} class="is-disabled" aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>{$sr_title}</a>
{elseif $sr_kind == 'announce' /}
<a href="{$sr_file}" target="_blank" rel="noopener">{$sr_title}</a>
<a href="{if $has_sr_file}{$sr_file}{else /}javascript:;{/if}"{if $has_sr_file} target="_blank" rel="noopener"{else /} class="is-disabled" aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>{$sr_title}</a>
{else /}
<a href="{$sr_url}">{$sr_title}</a>
{/if}
@ -219,7 +220,7 @@
</div>
{if $sr_kind == 'download'}
<a class="sr-item__more sr-item__more--download" href="{$sr_file}" download="{$sr_title}">
<a class="sr-item__more sr-item__more--download{if !$has_sr_file} is-disabled{/if}" href="{if $has_sr_file}{$sr_file}{else /}javascript:;{/if}"{if $has_sr_file} download="{$sr_title}"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<span>立即下载</span>
<img src="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20d='M16.667%209.333H22V22H2V9.333h5.333'%20stroke='rgb(46,53,58)'%20stroke-linejoin='round'%20stroke-width='1.5'/%3e%3cpath%20d='M16%2014l-4%204-4-4M12%202v16'%20stroke='rgb(239,67,53)'%20stroke-width='1.5'/%3e%3c/svg%3e" alt="" width="20" height="20" />
</a>
@ -231,7 +232,7 @@
</span>
</a>
{elseif $sr_kind == 'announce' /}
<a class="sr-item__more" href="{$sr_file}" target="_blank" rel="noopener">
<a class="sr-item__more{if !$has_sr_file} is-disabled{/if}" href="{if $has_sr_file}{$sr_file}{else /}javascript:;{/if}"{if $has_sr_file} target="_blank" rel="noopener"{else /} aria-disabled="true" tabindex="-1" onclick="return false;"{/if}>
<span>探索更多</span>
<svg viewBox="0 0 16.502 6.66113" xmlns="http://www.w3.org/2000/svg" width="16.501953" height="6.661133" fill="none">
<path d="M0 2.83057L16 2.83057L16 3.83057L0 3.83057L0 2.83057ZM15.2929 3.33057L12.818 0.855693C12.62 0.657703 12.62 0.346575 12.818 0.148586C13.016 -0.0494041 13.3271 -0.0494046 13.5251 0.148585L16.3536 2.97701C16.5515 3.175 16.5515 3.48613 16.3536 3.68412L13.5251 6.51255C13.3271 6.71054 13.016 6.71054 12.818 6.51255C12.62 6.31456 12.62 6.00343 12.818 5.80544L15.2929 3.33057Z" fill="rgb(102,102,102)" fill-rule="nonzero" />

Loading…
Cancel
Save