<?php $page_class = 'page-video'; include __DIR__ . '/_header.php'; ?>
<section class="banner-simple"><div class="container"><h1><?php echo htmlspecialchars(tplv($tplCurrent, 'title', '视频中心')); ?></h1></div></section>
<?php if ($tplCurrent) { ?><section class="section-block"><div class="container split-layout"><div><div class="video-box"><?php if (tplv($tplCurrent, 'video_path')) { ?><video controls style="width:100%;max-width:100%;border-radius:20px;" poster="<?php echo htmlspecialchars(tplv($tplCurrent, 'video_cover', tplv($tplCurrent, 'litpic'))); ?>"><source src="<?php echo htmlspecialchars(tplv($tplCurrent, 'video_path')); ?>"></video><?php } else { ?>VIDEO<?php } ?></div></div><aside class="meta-card"><h3>视频信息</h3><p>时长：<?php echo intval(tplv($tplCurrent, 'video_duration', 0)); ?> 秒</p><p>浏览：<?php echo intval(tplv($tplCurrent, 'click', 0)); ?></p></aside></div></section><?php } else { ?><section class="section-block"><div class="container card-grid cols-3"><?php foreach ($tplList as $row) { ?><article class="show-card"><div class="show-thumb"><?php echo getLitpicHtml(tplv($row, 'video_cover', tplv($row, 'litpic')), tplv($row, 'title')); ?></div><div class="show-body"><h3><a href="<?php echo tpl_url('video', $row); ?>"><?php echo htmlspecialchars(tplv($row, 'title')); ?></a></h3></div></article><?php } ?></div><div class="pagination-wrap"><?php echo $tplPager; ?></div></section><?php } ?>
<?php include __DIR__ . '/_footer.php'; ?>
