更新网页架构,新增外部工具分区,优化web样式
This commit is contained in:
1 parent
0c3d3d4977
commit
c5b6f4b4c2
15 files changed
+1207
-713
No files matched your search
@@ -114,24 +114,22 @@ layout_head('');
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="boards js-boards">
|
||||
<!-- 展开说明浮层(不参与布局,不可点击) -->
|
||||
<div class="board-panel js-board-panel" aria-hidden="true">
|
||||
<div class="board-panel-title js-board-panel-title"></div>
|
||||
<div class="board-panel-desc js-board-panel-desc"></div>
|
||||
</div>
|
||||
<div class="boards">
|
||||
<?php foreach ($cats as $c):
|
||||
$k = (string)$c['key'];
|
||||
$href = $catLink[$k] ?? 'index.php';
|
||||
$bIcon = trim((string)($c['icon'] ?? ''));
|
||||
$bIcon = $bIcon !== '' ? $bIcon : ($catIcon[$k] ?? '●');
|
||||
$hint = $catHint[$k] ?? '进入';
|
||||
$descTxt = trim((string)($c['description'] ?? ''));
|
||||
if ($descTxt === '') {
|
||||
$descTxt = $catHint[$k] ?? '';
|
||||
}
|
||||
?>
|
||||
<a class="board-card js-board-card" href="<?= he($href) ?>"
|
||||
data-name="<?= he($c['name']) ?>" data-desc="<?= he((string)$c['description']) ?>">
|
||||
<a class="board-card" href="<?= he($href) ?>" title="<?= he($c['name']) ?>:<?= he($descTxt) ?>">
|
||||
<span class="board-icon"><?= site_icon($bIcon, '') ?></span>
|
||||
<span class="board-name"><?= he($c['name']) ?></span>
|
||||
<span class="board-hint"><?= he($hint) ?></span>
|
||||
<!-- 说明文案直接常显(原悬停展开浮层已取消) -->
|
||||
<span class="board-hint"><?= he($descTxt) ?></span>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user