Migrate Laysense to unmodified LaySite 1.5.2
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
use App\Content\DesignLibrary;
|
||||
use App\Content\View;
|
||||
|
||||
$e = View::escape(...);
|
||||
?>
|
||||
<div data-palette-picker>
|
||||
<label id="<?= $e($id) ?>-label" for="<?= $e($id) ?>"><?= $e($label) ?></label>
|
||||
<select id="<?= $e($id) ?>" name="palette_id">
|
||||
<?php foreach ($options as $option): ?>
|
||||
<?php $cssId = $option['cssId'] ?? $option['id']; ?>
|
||||
<?php $region = $option['region'] ?? false; ?>
|
||||
<option value="<?= $e($option['id']) ?>" data-palette-css="<?= $cssId ? $e(DesignLibrary::paletteUrl($cssId, $option['version'], $region)) : '' ?>"<?= $region ? ' data-palette-region' : '' ?><?= (string) $selected === (string) $option['id'] ? ' selected' : '' ?>><?= $e($option['name']) ?></option>
|
||||
<?php endforeach ?>
|
||||
</select>
|
||||
<details class="palette-picker" hidden>
|
||||
<summary aria-labelledby="<?= $e($id) ?>-label <?= $e($id) ?>-value">
|
||||
<span id="<?= $e($id) ?>-value" data-palette-current></span><?= View::fragment('studio-icon', ['icon' => 'chevron']) ?>
|
||||
</summary>
|
||||
<div class="palette-picker-options">
|
||||
<?php foreach ($options as $option): ?>
|
||||
<button type="button" data-palette-option="<?= $e($option['id']) ?>" aria-pressed="<?= (string) $selected === (string) $option['id'] ? 'true' : 'false' ?>">
|
||||
<span class="palette-name"><?= $e($option['name']) ?><?= $option['colors'] ? View::fragment('palette-swatches', ['colors' => $option['colors']]) : '' ?></span>
|
||||
</button>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
Reference in New Issue
Block a user