' . e(py_t('作为顶级栏目')) . ''; foreach ($options as $opt) { if ((int) $opt['id'] === $exclude) { continue; } $html .= ''; } return $html; }; $renderModels = function (int $selected = 0) use ($models): string { $html = ''; foreach ($models as $model) { $html .= ''; } return $html; }; $renderTemplates = function (string $selected = '') use ($templateGroups): string { $html = ''; foreach ($templateGroups as $group) { $html .= ''; foreach ($group['files'] as $file) { $html .= ''; } $html .= ''; } return $html; }; $typeLabelsLocal = $typeLabels; $editorEnabled = !empty($editorConfig['enabled']); $uploadCard = function (string $field, string $value, string $label, string $tip): string { $has = $value !== ''; return '
' . '
' . '
' . '' . e($label) . '' . '
' . e(py_t('点击更换图片')) . '
' . '
' . Icons::svg('image', 30) . '' . e(py_t('点击或拖拽图片到此处')) . '' . '' . e(py_t('支持 JPG / PNG / WebP / GIF,建议 16:9 比例')) . '
' . '
' . '
' . '' . '
' . '
' . e($tip) . '
' . '
'; }; ?>
0): ?>└