forked from laysense/laysense.cn
36 lines
1.7 KiB
PHP
36 lines
1.7 KiB
PHP
<?php
|
|
|
|
use App\Content\BlockTemplates;
|
|
use App\Content\View;
|
|
|
|
$e = View::escape(...);
|
|
$labels = ['modules' => '组件', 'elements' => '元素', 'layers' => '图层'];
|
|
?>
|
|
<div class="studio-presets" data-canvas-presets>
|
|
<div class="studio-library-tabs" role="tablist" aria-label="页面编辑工具" data-library-tabs hidden>
|
|
<?php foreach ($labels as $kind => $label): ?>
|
|
<button type="button" role="tab" id="studio-tab-<?= $kind ?>" aria-controls="studio-panel-<?= $kind ?>"
|
|
aria-selected="false" tabindex="-1" data-library-tab="<?= $kind ?>"><?= $e($label) ?></button>
|
|
<?php endforeach ?>
|
|
</div>
|
|
<?php foreach (['modules' => BlockTemplates::groups(), 'elements' => BlockTemplates::ELEMENT_GROUPS] as $kind => $groups): ?>
|
|
<?= View::fragment('studio-library-panel', compact('kind', 'groups', 'anchorForm')) ?>
|
|
<?php endforeach ?>
|
|
<section role="tabpanel" id="studio-panel-layers" aria-labelledby="studio-tab-layers" data-library-panel="layers">
|
|
<?= $layers ?>
|
|
</section>
|
|
|
|
<div class="studio-template-peek" data-template-peek aria-hidden="true" hidden>
|
|
<img alt="">
|
|
<p></p>
|
|
</div>
|
|
<dialog class="media-picker studio-template-dialog" data-template-dialog aria-labelledby="studio-template-preview-title">
|
|
<header class="admin-heading compact">
|
|
<h2 id="studio-template-preview-title"></h2>
|
|
<button type="button" class="button button-outline" data-template-close>关闭</button>
|
|
</header>
|
|
<img alt="" width="768" height="480">
|
|
<div class="actions"><button type="button" class="button button-primary" data-template-use>添加到画布</button></div>
|
|
</dialog>
|
|
</div>
|