forked from laysense/laysite
Check upstream versions and label article-driven components
This commit is contained in:
@@ -29,7 +29,7 @@ $modules = $kind === 'modules';
|
||||
<?php foreach ($items as $key => $item): ?>
|
||||
<?php [$label, $markup, $option, $feed] = array_pad($item, 4, null); ?>
|
||||
<?php if ($modules): ?>
|
||||
<article class="studio-template-card" data-template-card data-library-item data-template-search-text="<?= $e($label . ' ' . $key) ?>">
|
||||
<article class="studio-template-card" data-template-card data-library-item data-template-search-text="<?= $e($label . ' ' . $key . ($feed !== null ? ' 动态' : '')) ?>">
|
||||
<?php if (($item[4] ?? '') === 'layout'): ?>
|
||||
<?php [$previewKind, $previewPreset] = explode('-', $key, 2); ?>
|
||||
<div class="studio-layout-card-preview">
|
||||
@@ -43,7 +43,10 @@ $modules = $kind === 'modules';
|
||||
</button>
|
||||
<?php endif ?>
|
||||
<div class="studio-template-meta">
|
||||
<span><?= $e($label) ?></span>
|
||||
<div class="studio-component-label">
|
||||
<span><?= $e($label) ?></span>
|
||||
<?php if ($feed !== null): ?><span class="studio-dynamic-badge">动态</span><?php endif ?>
|
||||
</div>
|
||||
<button type="button" class="button button-outline" disabled data-canvas-template="<?= $e($key) ?>"
|
||||
data-template-title="<?= $e($label) ?>" data-template-lead="<?= $e($option) ?>" data-template-style="<?= $e($item[4] ?? 'plain') ?>"
|
||||
<?= $feed !== null ? 'data-template-feed="' . $e($feed) . '"' : '' ?> aria-label="添加<?= $e($label) ?>组件">添加</button>
|
||||
|
||||
Reference in New Issue
Block a user