forked from laysense/laysite
Add page publication history and reusable blocks
This commit is contained in:
@@ -18,8 +18,9 @@ $previewRoot = '/assets/page-templates/';
|
||||
<h3 id="page-template-groups" tabindex="-1">选择套系</h3>
|
||||
<div class="page-template-groups">
|
||||
<?php foreach ($groups as $key => $group): ?>
|
||||
<?php $thumbnail = count($group['pages']) === 1 ? array_key_first($group['pages']) : $key; ?>
|
||||
<button type="button" class="page-template-card" data-template-group="<?= $e($key) ?>">
|
||||
<span class="page-template-image"><img src="<?= $e($previewRoot . $key . '.webp') ?>" width="768" height="480" alt="" loading="lazy"></span>
|
||||
<span class="page-template-image"><img src="<?= $e($previewRoot . $thumbnail . '.webp') ?>" width="768" height="480" alt="" loading="lazy"></span>
|
||||
<span class="page-template-card-copy"><strong><?= $e($group['name']) ?></strong><small><?= $e($group['description']) ?></small></span>
|
||||
</button>
|
||||
<?php endforeach ?>
|
||||
|
||||
Reference in New Issue
Block a user