Browse Source

pdf下载链接

master
xiaodong 1 week ago
parent
commit
bd3da95b8b
  1. 4
      public/themes/website/1/en/demo/download.html
  2. 4
      public/themes/website/1/zh/demo/download.html

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

@ -119,7 +119,9 @@
<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'] ?? '');
// $dl_file = !empty($vo['url']) ? $vo['url'] : ($vo['thumbnail']['url'] ?? '');
$pdf_resource_download = $vo['main_content']['resource_download'][0] ?? '';
$dl_file = $pdf_resource_download;
$has_dl = $dl_file !== '';
{/php}
<div class="d-item">

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

@ -119,7 +119,9 @@
<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'] ?? '');
// $dl_file = !empty($vo['url']) ? $vo['url'] : ($vo['thumbnail']['url'] ?? '');
$pdf_resource_download = $vo['main_content']['resource_download'][0] ?? '';
$dl_file = $pdf_resource_download;
$has_dl = $dl_file !== '';
{/php}
<div class="d-item">

Loading…
Cancel
Save