Add visual CMS, media library and product directory

This commit is contained in:
2026-11-21 19:27:46 +08:00
parent 188a63fb2f
commit 474008b06e
42 changed files with 1710 additions and 134 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ use League\CommonMark\CommonMarkConverter;
final class Html
{
private const TAGS = [
'a' => ['href'], 'article' => [], 'b' => [], 'blockquote' => [], 'br' => [],
'a' => ['href'], 'article' => [], 'audio' => ['src', 'controls', 'preload'], 'b' => [], 'blockquote' => [], 'br' => [],
'caption' => [], 'code' => [], 'dd' => [], 'details' => [], 'div' => ['role', 'aria-label', 'tabindex'],
'dl' => [], 'dt' => [], 'em' => [], 'h1' => [], 'h2' => [], 'h3' => [], 'h4' => [], 'h5' => [], 'h6' => [], 'hr' => [], 'i' => [],
'img' => ['src', 'alt', 'loading', 'width', 'height'], 'label' => ['for'],
@@ -20,7 +20,7 @@ final class Html
'small' => [], 'source' => ['src', 'type'], 'span' => [], 'strong' => [], 'summary' => [],
'table' => [], 'tbody' => [], 'td' => ['colspan', 'rowspan'], 'tfoot' => [],
'th' => ['scope', 'colspan', 'rowspan'], 'thead' => [], 'tr' => [], 'ul' => [],
'video' => ['controls', 'muted', 'playsinline', 'poster', 'preload'],
'video' => ['src', 'controls', 'muted', 'playsinline', 'poster', 'preload'],
];
public static function url(string $value, bool $media = false): bool