<?php $page_class = 'page-search'; include __DIR__ . '/_header.php'; ?>
<section class="banner-simple"><div class="container"><h1>搜索结果</h1></div></section>
<section class="section-block"><div class="container"><form class="contact-form" method="get" action="/public/index.php"><input type="hidden" name="m" value="search"><input type="text" name="keyword" value="<?php echo htmlspecialchars($tplSearchKeyword); ?>" placeholder="请输入关键词"><button class="btn btn-primary" type="submit">搜索</button></form><div class="list-stack"><?php foreach ($tplList as $row) { $desc = tplv($row, 'summary'); if ($desc === '') $desc = tplv($row, 'content'); ?><article class="result-card"><h3><a href="<?php echo getUrl(tplv($row, 'content_model', 'article'), intval(tplv($row, 'id', 0))); ?>"><?php echo htmlspecialchars(tplv($row, 'title')); ?></a></h3><p><?php echo htmlspecialchars(tpl_excerpt($desc, 120)); ?></p></article><?php } ?></div></div></section>
<?php include __DIR__ . '/_footer.php'; ?>
